Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float N;
- scanf("%f",&N);
- if (N>=0 && N<=25)
- {
- printf("Intervalo (0,25]\n");
- } else if (N>25 && N<=50)
- {
- printf("Intervalo (25,50]\n");
- }else if (N>50 && N<=75)
- {
- printf("Intervalo (50,75]\n");
- }else if (N>75 && N<=100)
- {
- printf("Intervalo (75,100]\n");
- } else
- {
- printf("Fora de intervalo\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement