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