I have this program that I wrote a few weeks ago:
Now i have to repeat this for 6 students. How do I know which loop to use?Code:#include<stdio.h> #include<conio.h> int main() { float grade; printf("\nEnter Grade:\n"); scanf("%f", &grade); if( grade >= 90) printf("Your grade is:A"); else if ( grade >= 80) printf("Your grade: B"); else if ( grade >= 70) printf("Your grade: C"); else if ( grade >= 60) printf("Your grade: D"); else if ( grade <= 59) printf("Your grade: F"); return 0; _getch(); }