- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 0124-2383121
Course Introduction
Programs for practice
In the program below, we've asked the user to enter the temperature in centigrade to convert it into Fahrenheit in C++
Source Code: Print Centigrade to Fahrenheit Conversion
/* C++ Program - Centigrade to Fahrenheit Conversion */ #include<iostream.h> #include<conio.h> void main() { clrscr(); float cen, fah; cout<<"Enter temperature in Celsius : "; cin>>cen; fah=(1.8 * cen) + 32; cout<<"\nTemperature in Fahrenheit = "<<fah; getch(); }Output
Enter temperature in Celsius :37 Temperature in Fahrenheit =98.599