daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     float gradePerc;
  5.    
  6.     printf("Enter Your Grade\n");
  7.      scanf("%d", &gradePerc);
  8.    
  9.     if (gradePerc>90)
  10.     {
  11.         printf("\nThe corresponding grade letter is A");
  12.     }
  13.     else if (gradePerc<=89)
  14.     {
  15.         printf("\nThe corresponding grade letter is B");
  16.     }
  17.         else if (gradePerc<=79)
  18.     {
  19.         printf("\nThe corresponding grade letter is C");
  20.     }
  21.         else if (gradePerc<=69)
  22.     {
  23.         printf("\nThe corresponding grade letter is D");
  24.     }
  25.             else
  26.     {
  27.         printf("\nThe corresponding grade letter is E");
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top