This is a program that prompts the user for a value and proint the converted value
#include
#include
void main()
{
char inputBuffer[256];
puts("Enter a temperature in centigrade:");
gets(inputBuffer);
printf("%s centigrades is %f fahrenheit\r\n",inputBuffer, atof(inputBuffer)*9.0/5.0+32);
}
2006-10-15 08:12:06
·
answer #1
·
answered by cd4017 4
·
0⤊
0⤋
#contain iostream #contain using namespace std; waft fToC (waft stages); int significant() { waft fahrenheit,centigrade; cout << "enter the fahrenheit temperature:" << endl; cin >> fahrenheit; centigrade = fToC(fahrenheit); cout << fahrenheit << "F is" << centigrade << " C"; getch(); go back 0; } waft fToC (waft degreesF) { waft degreesC = ( (5.0/9.0) * (degreesF -32.0) ); go back degreesC; } you comprehend you'll not in any respect make it everywhere in instructions by technique of taking classes from human beings right here. Do you already comprehend the formula in any respect? Like, if the Fahrenheit temperature is 50, then you actually subtract 32, seems to be 18, then multiply by technique of 0.555, then around the fashion.
2016-12-04 20:49:17
·
answer #2
·
answered by eichelberger 3
·
0⤊
0⤋
Degrees_c = (Degress_F - 32)*(5/9);
2006-10-15 06:59:27
·
answer #3
·
answered by Chris J 6
·
0⤊
0⤋
yes
2006-10-15 07:03:19
·
answer #4
·
answered by jjdawg 3
·
0⤊
0⤋