Advertisement
dsdeep

URI 1037

Feb 16th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     float a;
  5.     scanf("%f",&a);
  6.     if(a>=0&&a<=25)
  7.         printf("Intervalo [0,25]\n");
  8.     else if(a>25&&a<=50)
  9.         printf("Intervalo (25,50]\n");
  10.     else if(a>50&&a<=75)
  11.         printf("Intervalo (50,75]\n");
  12.     else if(a>75&&a<=100)
  13.         printf("Intervalo (75,100]\n");
  14.     else
  15.     printf("Fora de ntervalo\n");
  16.     return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement