Nofew

Thingy.c

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