adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Convert Fahrenheit into centigrade in C++ program

Convert Fahrenheit into centigrade 

#include<iostream>
#include<conio.h>
 using namespace std;
   int main()
    {
      float f,c; //Declaration of variable
      cout<<"Enter tempreture in fahrenheit degrees:-";
      cin>>f;
      c=(f-32)*5.0/9.0;
      cout<<"Tempreture in centigrade="<<c; 
      getch();
    }
Output:-
  

Post a Comment

0 Comments