i am making a program in c that will convert percentage grades to a letter, but it keeps giving me an error that says else without a previous if. anybody know how to help me? float grade; printf("Please enter your grade percentage\n"); scanf("%f", &grade); if (grade>= 90); printf("You get an A+\n"); else if (grade>=85); printf("You get an A\n");
Aucun commentaire:
Enregistrer un commentaire