Write a c program to convert the given temperature Fahrenheit to Celsius using the following formula C = (F – 32)/1.8 and display the values in tabular form

#include<stdio.h>
  int main()
    {
      float  c, f;
      printf( "F= " );
      scanf( "%f" ,&f);
      c=(f-32)/1.8;
      printf( "C= %f" ,c);
      return 0;
     }

No comments:

Post a Comment