Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. main()
  4.  
  5. int fahr, celsius;
  6. int lower, upper, step;
  7.  
  8. lower = -32;
  9. upper = 300;
  10. step = 20;
  11.  
  12. {
  13.     fahr = lower;
  14.     while (fahr <= upper) {
  15.         celsius = 5 * (fahr-32) / 9;
  16.         printf(%d\t%d\n”, fahr, celsius);
  17.         fahr = fahr + step;
  18.     }
  19.  
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement