Added stack address randomization example.
[C-Programming-Examples.git] / temp_conv2.c
blob921f0ae1835619f54a2774d7674815a0c9deb0c4
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 fahr = lower;
13 while (fahr <= upper){
14 celsius = (5.0/9.0) * (fahr-32.0);
15 printf("%3.0f %6.1f\n", fahr, celsius);
16 fahr = fahr + step;