Sunday 19 May 2013

scale converting Fahrenheit to centigrade


scale converting Fahrenheit to centigrade  in C

#include<stdio.h>
 #include<conio.h>


  int main(){
      double cent, fehr;
      printf("Enter temp. in centegrade scale:  ");
      scanf("%lf",&cent);    
      fehr= (cent * 9)/5 + 32;    
      printf("Temp in fehrenheit scale: %0.2lf",fehr);
      getch();
      return 0;
  }

No comments:

Post a Comment