Advertisement
Guest User

asdasdasdasdasd

a guest
May 6th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. float pressao;
  7.  
  8. printf("Informe o valor de pressão da caldeira (valores   entre   0.00   e   9.99):");
  9. scanf("%f", &pressao);
  10.  
  11. switch(pressao)
  12. {
  13. case (pressao<=3.33):
  14. printf("Pressão baixa");
  15. break;
  16. case ((pressao > 3.33) || (pressao <= 6.66)):
  17. printf("Pressão média");
  18. break;
  19. case (pressao > 6.66):
  20. printf("Pressão alta");
  21. break;
  22.  
  23.  
  24. }
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement