Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define TEMP_WRZENIA 100
  4. #define TEMP_ZAMARZANIA 0
  5.  
  6. int main()
  7. {
  8. int temp;
  9. printf("Podaj temperaturne w stopniach Celcjusza :");
  10. scanf("%d", &temp);
  11.  
  12.  
  13. if(temp > TEMP_WRZENIA)
  14. {
  15. printf("Stan Gazowy");
  16. }
  17. else if(temp < TEMP_ZAMARZANIA)
  18. {
  19. printf("Stan Stały");
  20. }
  21. else
  22. {
  23. printf("Stan Ciekły");
  24. }
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement