U E D R , A S I H C RSS

05학번만의C++Study/숙제제출1/허아영

~cpp
#include <iostream>
using namespace std;

float calculation(float celsius);

void main()
{
	float celsius, fahrenheit;
	cout << "   Enter 키  : ";
	cin >> celsius;
	fahrenheit = calculation(celsius);
	cout << "" << celsius << " " << fahrenheit << "." << endl;
}

float calculation(float celsius)
{
	float fahrenheit = 0;
	fahrenheit = celsius * 1.8 + 32.0;
	return fahrenheit;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:05
Processing time 0.0082 sec