Inital Commit
[C-Programming-Examples.git] / ex_1-4.c
blobd28f5e431847e9c1dab24886fb39a7b7a40b9ada
1 #include <stdio.h>
3 main()
5 float fahr, celsius;
6 int lower, upper, step;
8 lower = 0;
9 upper = 300;
10 step = 20;
12 celsius = lower;
14 while (celsius <= upper)
16 fahr = (celsius*1.8)+32;
17 printf("%6.1f %6.1f\n", celsius, fahr);
18 celsius = celsius + step;