Suva Programming
Blog about C++ and other programming source code.
Pages
Home
Privacy Policy
Disclaimer
Tuesday 28 January 2020
cpp program to convert temperature in fahrenheit to celsius
Source Code:
#include<iostream>
using namespace std;
int main()
{
float f,c;
cout<<"Enter the temperature: ";
cin>>f;
c=(f-32)/1.8;
cout<<"The temperature in celsius: "<<c;
return 0;
}
Program Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment