Tuesday 24 November 2015

C++ code to change temperature from celcius to fahrenheit

#include <iostream>
using namespace std;

int main()
{
float celcius, fahrenheit;
cout << "Temperature In Celcius : ";
cin >> celcius;
fahrenheit = ((9 / 5)*celcius) + 32;
cout << "Temperature In Fahrenheit : " << fahrenheit << " F" << endl;



return 1;
}
Share:

0 comments:

Post a Comment