Advertisement
PedroSG

Untitled

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