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

05학번만의C Study/숙제제출1/정진수

From ZeroWiki
Revision as of 05:22, 7 February 2021 by imported>Unknown
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
#include <iostream.h>

double Fah; //화씨온도
double Cel; //섭씨온도

int main()
{
	Fah=0; 
	Cel=0; 

	
	cout << "섭씨 온도를 입력하고 Enter 키를 누르십시오 : ";
	cin >> Cel;

	Fah= 1.8*Cel + 32.0; //연산

	cout << "섭씨 " << Cel << "도는 화씨로 " << Fah << "도 입니다\n";

	return 0;

}