Q1.To convert temperature in degrees, Fahrenheit to Celcius, one must subtract 32 from the Fahrenheit figure and multiply the result by. 5/9.for example to convert 50°F to Celcius, you proceed as follow (50-32) ×5/9=10°C. Write a C++ program which will ask the user to input five different temperature values in Fahrenheit and output their equivalent in celcius in tabular form with the headings Fahrenheit to Celcius
1
Expert's answer
2020-07-15T09:47:45-0400
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n=5;
while(n--)
{
int c;int f;
cin>>f;
cout<<(f-32)/1.8<<"\n";
}
}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment