/* print the Farenheight to Celcius scale */ int main() { int fahr; for (fahr = 0; fahr <= 300; fahr = fahr + 20) printf("f:%d c:%6.2f\n", fahr, celcius(fahr)); return 0; }
int main(void){ const int tablaDesde = 0; const int tablaHasta = 300; const int siguiente = 10; printf("\t%s -->\t%s\n","Fahrenheit", "Celsius"); for(int fahr = tablaDesde ; fahr < tablaHasta; fahr = fahr + siguiente){ printf("\t%03d -->\t%04.2f\n",fahr, celcius(fahr) ); } }
int main () { float fahr; int lower, upper, step; lower = 0; upper = 300; step = 20; fahr = lower; while (fahr <= upper) { printf("%3.0f %6.1f\n", fahr, celcius(fahr)); fahr = fahr + step; } return 0; }