Wednesday, 11 February 2015

u1p5

Program that convert the temperature from Fahrenheit to Celsius.(F-32)*5/9.


 #include<iostream.h>  
 #include<conio.h>  
 void main()  
 {  
      clrscr();  
      double temp_c,temp_f;  
      cout<<"This program will convert Temperature from Fahrenheit to Celsius.\n\n";  
      cout<<"Enter Fahrenheit Value : ";  
      cin>>temp_f;  
      temp_c = (temp_f-32)*5/9;  
      cout<<"\n\nCelcius value of "<<temp_f<<" is "<<temp_c;  
      getch();  
 }  

OUTPUT :


No comments:

Post a Comment