Created
April 8, 2019 07:16
-
-
Save SirmaXX/315f63f71479b0936b7ece2caf37322d to your computer and use it in GitHub Desktop.
solve sytnax problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int ort; | |
char not; | |
printf("ortalama gir"); | |
scanf("%f",&ort); | |
switch(not){ | |
case 'a': | |
printf(" A aldiniz \n"); | |
case 'b': | |
printf(" B aldınız \n"); | |
case 'c': | |
printf("C aldınız \n"); | |
default: | |
printf("F aldınız"); | |
} | |
if(ort >90 ){ | |
not='a'; | |
}else if(ort >80){ | |
not='b'; | |
}else if(ort >70 ){ | |
printf("C aldınız \n"); | |
not='c'; | |
}else{ | |
printf("F aldınız"); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment