In: Computer Science
source code:
#include <stdio.h>
int main()
{
int n;
printf("Enter Score : ");
scanf("%d",&n);
if(n>=90 && n<=100)
printf("%d - A",n);
else if(n>=80 && n<=89)
printf("%d - B",n);
else if(n>=70 && n<=79)
printf("%d - C",n);
else if(n>=65 && n<=69)
printf("%d - D",n);
else if(n>=0 && n<=64)
printf("%d - F",n);
else
printf("invalid number");
return 0;
}
if you have any doubts ask me...