/ Published in: C
This program show two columns of temperature. In left - t of celsius, in right - t. of fahr.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> main() { int fahr, celsius; int lower,upper,step; lower = 0; upper = 300; step = 20; fahr = lower; while(fahr<=upper){ celsius = 5 * (fahr-32) / 9; fahr = fahr + step; } }
URL: www.sa1t.ru