소스 ¶
~cpp #include "iostream" using namespace std; using std::endl; int main() { cout << "섭씨 온도를 입력하고 ENTER 키를 누르십시오 : "; double celsius =0 ; double fahrenheit =0 ; cin >> celsius ; fahrenheit = 1.8 * celsius + 32 ; cout << "섭씨 " << celsius << "도는 화씨 " << fahrenheit << "도 입니다" << endl ; return 0; }