C Program to Convert Celsius Temperature into Fahrenheit Temperature

How to write a C Program Convert Celsius Temperature into Fahrenheit Temperature in C Programming Language ?


Solution:

  1. #include <stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6.         float C, F;
  7.  
  8.         for (= 0; C <= 100; C++)
  9.                
  10.                 printf("Celsius: %6.2lf\n", C);        
  11.  
  12.                 F = 32 + ((9 / 5)*C);
  13.                 printf("Fahrenheit: %6.2lf\n", F);
  14.  
  15.         return 0;
  16. }


Learn More :