Convert Celsius to Fahrenheit in C++


Prev Tutorial Next Tutorial

C++ program to Convert Celsius to Fahrenheit

Fahrenheit and Celsius are two unit for measure temperature. We have standard formula to Convert Celsius to Fahrenheit using this formula you can change temperature Fahrenheit to Celsius.

Formula

 f = c * 9/5 + 32;
 

Convert Celsius to Fahrenheit in C++

#include<iostream.h>
#include<conio.h>

void main()
{
 float cel, far;
  clrscr();
  cout<<"Enter temp. in Celsius: ";
  cin>>cel;
   far = cel * 9/5 + 32;
  cout<<"Temp. in Fahrenheit: "<<far;
 getch();
}

Output

Enter temp. in Celsius: 36
Temp. in Fahrenheit: 96.000

Prev Tutorial Next Tutorial

Advertisements
Download Projects

Advertisements

Download WhatsApp Status Video

Buy This Ad Space Only $50 per Month, Ad Size 300X250 Contact on: [email protected] WhatsApp no. 8882538826

Google Adsense Advertisements