fc.c | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <stdio.h> main() { int f; double c; // izpis glave tabele printf("%6c | %6c\n", 'F', 'C'); printf("---------------------\n"); // glavna zanka programa for(f=0; f<=120; f=f+10) { c=(f - 32)/1.8; // izpis posamezne vrstice tabele printf("%6d | %6.2f\n", f, c); } } |