Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. /*Costea Alessandro
  2. 3A INFO 22/09/18*/
  3.  
  4. //Inserire il voto e il programma stampa se il voto รจ sufficiente , insufficiente o gravemente insufficiente
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8.  
  9. int main ()
  10. {
  11.     int a;
  12.    
  13.     printf("Inserire il valore del voto(compreso tra 2 e 10):  ");
  14.     scanf("%f",&a);
  15.    
  16.  
  17.     if (a>=6)
  18.     {
  19.         printf("Il voto e' sufficiente");
  20.     }
  21.     else
  22.     {
  23.         if(a<=4)
  24.         {
  25.             printf("Il voto e' gravemente insufficiente");
  26.         }
  27.         else
  28.         {
  29.             printf("Il voto e' insufficiente");
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement