Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

05학번만의C++Study/숙제제출1/이형노: Difference between revisions

From ZeroWiki
(Repair pages found by live-compare batch 0001)
(Repair batch-0001 pages from live compare)
 
Line 27: Line 27:
음... 저 fah 라는 변수... 쓸데 없는건가?? 고민되네...ㅋㅋ -- (laciel)형노
음... 저 fah 라는 변수... 쓸데 없는건가?? 고민되네...ㅋㅋ -- (laciel)형노


----05학번만의C++Study 05학번만의C++Study/숙제제출
----[[05학번만의C++Study]] [[05학번만의C++Study/숙제제출]]

Latest revision as of 23:55, 26 March 2026

소스

#include<iostream>

using namespace std;

float tofah(float );

int main()
{
	float cel;		//섭씨온도
	float fah;		//화씨온도
	
	cout << "섭씨 온도를 입력하고 Enter 키를 누르십시오 : " ;
	cin >> cel;
	
	fah=tofah(cel);

	cout << "섭씨 " << cel << "도는 화씨로 " << fah << "도 입니다." << endl;
	return 0;
}

float tofah(float cel)
{
	return (1.8 * cel) + 32.0;
}

음... 저 fah 라는 변수... 쓸데 없는건가?? 고민되네...ㅋㅋ -- (laciel)형노


05학번만의C++Study 05학번만의C++Study/숙제제출