C Program to Convert Celsius to Fahrenheit temperature

How to Write a C Program to Convert Celsius to Fahrenheit temperature in C Programming Language ?


This C Program to Convert Celsius to Fahrenheit temperature.

Solution:

  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. void main ()
  5. {    float c,f;
  6.     clrscr ();
  7.     printf ("Enter the value of celcius: ");
  8.     scanf ("%f",&c);
  9.     f=(float) 9/5*c+32;
  10.     printf ("\nFahrenheit is %.2f",f);
  11.     getch ();
  12. }


Learn More :