이 프로그램에서는 C++를 사용하여 섭씨를 화씨로 변환하는 방법을 볼 것입니다. 공식은 간단합니다.

알고리즘
Begin Take the Celsius temperature in C calculate F = (9C/5)+32 return F End
예시 코드
#include<iostream>
using namespace std;
main() {
float f, c;
cout << "Enter temperature in Celsius: ";
cin >> c;
f = (9.0*c/5.0)+32;
cout << "Equivalent Fahrenheit temperature is: " << f;
} 출력
Enter temperature in Celsius: 37 Equivalent Fahrenheit temperature is: 98.6