In this program Converts Temperature from Celsius to Fahrenheit.
C++ Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include<iostream> using namespace std; int main() { float cel , far; cout<<"Enter Temperature in Celsius : "; cin>>cel; far=(cel * 9.0) / 5.0 + 32; cout<<"Temperature in Fahrenheit is : " <<far<<endl; return 0; } |
Output:

cpp examples