Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- float pressao;
- printf("Informe o valor de pressão da caldeira (valores entre 0.00 e 9.99):");
- scanf("%f", &pressao);
- switch(pressao)
- {
- case (pressao<=3.33):
- printf("Pressão baixa");
- break;
- case ((pressao > 3.33) || (pressao <= 6.66)):
- printf("Pressão média");
- break;
- case (pressao > 6.66):
- printf("Pressão alta");
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement