Nofew icon

Thingy.c

Nofew | PRO | 11/28/15 10:55:45 PM UTC | 0 ⭐ | 445 👁️ | Never ⏰ | []
C |

270 B

|

None

|

0 👍

/

0 👎

#include <stdio.h>
 
int main(void) {
    int fahr, cels;
    int lower, upper, step;
 
    lower = 0;
    upper = 300;
    step = 20;
 
    fahr = lower;
    while (fahr <= lower) {
        cels = 5 * (fahr-32) / 9;
        printf("%d\t%d\n", fahr, cels);
        fahr = fahr + step;
    }
    return 0;
}

Comments