Hi every one iam new to c programming and i would like to receive comments in the following code. In how to improve this skills!
I would also want this grade program to go in a loop, like instead of return 0; will return to main and do ask the user for their grade. How can i do that!
Thanks, for your help!
Code:/*This program will print the letter grade according to the numeric grade*/ #include <stdio.h> main() { int grade; printf("Please enter your grade\n"); scanf("%d", &grade); if (grade >= 90) printf("A\n"); else if(grade >= 80) printf("B\n"); else if(grade >= 70) printf("C\n"); else if(grade >= 60) printf("D\n"); else if(grade >= 50) printf("F\n"); else printf("You should get a personal tutor immediatly\n"); return 0; }