Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define TEMP(a) ((5.0/9.0)*(a-32.0))
  4.  
  5. int main(void)
  6. {
  7. int x;
  8. float y;
  9. x = 0;
  10.  
  11. printf("Umrechnung von Grad Celsius in Grad Fahrenheit\n");
  12.  
  13. while(x <= 400)
  14. {
  15. y = TEMP(x);
  16. printf("%i Grad Celsius \t = \t %f Grad Fahrenheit\n ", x, y);
  17. x = x + 20;
  18. }
  19.  
  20. getchar();
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement