nikolas_serafini

Lista 2 - Exercício 33

May 27th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int med;
  7.  
  8.     printf("Entre com a media do aluno : \n"); scanf("%d",&med);
  9.    
  10.     if ((med>=0)&&(med<5)) printf("CONCEITO D!\n");
  11.     else if ((med>=5)&&(med<8)) printf("CONCEITO C!\n");
  12.     else if ((med>=7)&&(med<9)) printf("CONCEITO B!\n");
  13.     else printf("CONCEITO A!\n");
  14.    
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment