Samiul_Islam_Abir

7

Jun 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.81 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int m;
  5.     printf("Enter the marks:");
  6.     scanf("%d",&m);
  7.     if((m>=80)&&(m<=100))
  8.     {
  9.         printf("Get A+",m);
  10.     }
  11.     else if ((m>=75)&&(m<=79))
  12.     {
  13.         printf("Get A",m);
  14.     }
  15.     else if((m>=70)&&(m<=74))
  16.     {
  17.         printf("Get A-",m);
  18.     }
  19.     else if((m>=65)&&(m<=69))
  20.     {
  21.         printf("Get B+",m);
  22.     }
  23.     else if((m>=60)&&(m<=64))
  24.     {
  25.         printf("Get B",m);
  26.     }
  27.     else if ((m>=55)&&(m<=59))
  28.     {
  29.         printf("Get B-",m);
  30.     }
  31.     else if ((m>=50)&&(m<=54))
  32.     {
  33.         printf("Get C+",m);
  34.     }
  35.     else if((m>=45)&&(m<=49))
  36.     {
  37.         printf("Get C",m);
  38.     }
  39.     else if((m>=40)&&(m<=44))
  40.     {
  41.         printf("Get D",m);
  42.  
  43.     }
  44.     else
  45.     {
  46.         printf("fail ",m);
  47.     }
  48.     return 0;
  49. }
Add Comment
Please, Sign In to add comment