Answer to Question #273192 in C++ for Kelvin

Question #273192

(iii) Write a C++ program where the user will enter temperature in Fahrenheit to convert it into


Centigrade, then display the result on the screen:

1
Expert's answer
2021-11-29T18:43:59-0500
#include<iostream>
using namespace std;
int main()
{
    float fah, cel;
    cout<<"Enter the Temperature in Fahrenheit: ";
    cin>>fah;
    cel = (fah-32)/1.8;
    cout<<"\nEquivalent Temperature in Celsius: "<<cel;
    cout<<endl;
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS