Advertisement
rdsedmundo

conceito.c

Apr 11th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.    
  5.     int n;
  6.  
  7.     scanf("%d", &n);
  8.  
  9.     if(n >= 86)
  10.         printf("A");
  11.     else if(n >= 61)
  12.         printf("B");
  13.     else if(n >= 36)
  14.         printf("C");
  15.     else if(n >= 1)
  16.         printf("D");
  17.     else
  18.         printf("E");
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement