1. #include <iostream> 
  2. using namespace std; 
  3. void convertTemp(double, double); 
  4. int main() 
  5. double f_temp = 40; 
  6. double c_temp; 
  7. convertTemp(c_temp, f_temp); 
  8. cout << "화씨온도" << f_temp << "도는 섭씨온도 " << c_temp << "입니다" << endl; 
  9. return 0; 
  10. void convertTemp(double c_temp, double f_temp) 
  11. c_temp = (5.0 / 9.0) * (f_temp - 32);