Answer to Question #306794 in C++ for Badlyneeded

Question #306794

 Design an algorithm that converts a temperature value in Fahrenheit (F) to value in Celsius (C) using the following formula: C = (F -32) x (100/180)


1
Expert's answer
2022-03-06T14:04:22-0500


#include <iostream>
#include <cmath>
using namespace std;




int main() {
	double F;
	cout<<"Enter a temperature value in Fahrenheit (F): ";
	cin>>F;
	double C = (F-32.0) *(100.0/180.0);
	cout<<"A temperature value in Celsius is: "<<C<<"\n\n";


	system("pause");


	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