Skip to content

Instantly share code, notes, and snippets.

@nalin-adh
Created November 8, 2015 17:45
Show Gist options
  • Save nalin-adh/80341a75090ba8216335 to your computer and use it in GitHub Desktop.
Save nalin-adh/80341a75090ba8216335 to your computer and use it in GitHub Desktop.
A C++ program that reads the temperature in Celsius and convert into Fahrenheit.
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
float celsius,fahrenheit;
cout<<"Enter the temperature in Celsius : ";
cin>>celsius;
cout<<endl<<endl<<endl;
fahrenheit=(celsius*9)/5+32;
cout<<"Temperature in Fahrenheit = "<<fahrenheit<<endl;
getch();
return(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment