इस कार्यक्रम में हम देखेंगे कि 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