/*********************************************************** * You can use all the programs on www.c-program-example.com * for personal and learning purposes. For permissions to use the * programs for commercial purposes, * contact [email protected] * To find more C programs, do visit www.c-program-example.com * and browse! * * Happy Coding ***********************************************************/ /*C program to print the corresponding Celsius to Fahrenheit table. */ #include <stdio.h> int main(void) { float fahr, celsius; int lower, upper, step; lower = 0; upper = 300; step = 20; printf("C Fnn"); celsius = lower; while(celsius <= upper) { fahr = (9.0/5.0) * celsius + 32.0; printf("%3.0f %6.1fn", celsius, fahr); celsius = celsius + step; } return 0; }
Read more Similar C Programs Number System K and R C Programs Exercise
You can easily select the code by double clicking on the code area above.
To get regular updates on new C programs, you can Follow @c_program
You can discuss these programs on our Facebook Page. Start a discussion right now,
Share this program with your Facebook friends now! by liking it
Like to get updates right inside your feed reader? Grab our feed!