No description provided.
#include <stdio.h> main() { float fahr, celcius; int lower, upper, step; lower = 0; // lower limit of temp table upper = 300; //upper limit step = 20; // stepsize printf("Fahrenheit\tCelsius\n"); fahr=lower; while(fahr<=upper) { celcius = (5.0/9.0) * (fahr-32); printf("%f\t%f\n", fahr, celcius); fahr = fahr + step; } } /*_____________________ Fahrenheit Celsius 0.000000 -17.777779 20.000000 -6.666667 40.000000 4.444445 60.000000 15.555555 80.000000 26.666666 100.000000 37.777779 120.000000 48.888889 140.000000 60.000000 160.000000 71.111115 180.000000 82.222221 200.000000 93.333336 220.000000 104.444443 240.000000 115.555557 260.000000 126.666664 280.000000 137.777771 300.000000 148.888885 ______________________*/ #include <stdio.h> main() { float fahr, celcius; int lower, upper, step; lower = 0; // lower limit of temp table upper = 300; //upper limit step = 20; // stepsize printf("Celsius \t Fahrenheit\n"); celcius=lower; while(celcius<=upper) { fahr = (5.0/9.0) * (celcius+32); printf("%f\t%f\n", celcius,fahr); celcius = celcius + step; } } /*___________________ output for 1.4 Celsius Fahrenheit 0.000000 17.777779 20.000000 28.888889 40.000000 40.000000 60.000000 51.111111 80.000000 62.222221 100.000000 73.333336 120.000000 84.444443 140.000000 95.555557 160.000000 106.666664 180.000000 117.777779 200.000000 128.888885 220.000000 140.000000 240.000000 151.111115 260.000000 162.222229 280.000000 173.333328 300.000000 184.444443 _____________________*/
Tryied to add some backlash features
#include <stdio.h> main() { printf("\"hello,\t worl\bd\"\n"); }