Skip to content

Instantly share code, notes, and snippets.

@SirmaXX
Created April 8, 2019 07:16
Show Gist options
  • Save SirmaXX/315f63f71479b0936b7ece2caf37322d to your computer and use it in GitHub Desktop.
Save SirmaXX/315f63f71479b0936b7ece2caf37322d to your computer and use it in GitHub Desktop.
solve sytnax problem
#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