/ Published in: C
URL: www.sa1t.ru
This program show two columns of temperature. In left - t of celsius, in right - t. of fahr.
Expand |
Embed | Plain Text
#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; } }
You need to login to post a comment.
