Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     float A;
  5.     scanf("%f",&A);
  6.  
  7.     if(A>0 && A<=25)
  8.     {
  9.         printf("Intervalo [0,25]\n");
  10.     }
  11.     else if(A>25 && A<=50)
  12.     {
  13.  
  14.         printf("Intervalo (25,50]\n");
  15.     }
  16.  
  17.      else if(A>50 && A<=75)
  18.     {
  19.  
  20.         printf("Intervalo (50,75]\n");
  21.     }
  22.  
  23.      else if(A>75 && A<=100)
  24.     {
  25.  
  26.         printf("Intervalo (75,100]\n");
  27.     }
  28.     else{
  29.         printf("Fora de intervalo");
  30.     }
  31.     return 0;
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement