#include "stdafx.h" #include<iostream> using namespace std; int main(void) { float Fahrenheit, Celsius; cout << "Enter temperature in Celsius: "; cin >> Celsius; Fahrenheit = (Celsius * 9.0) / 5.0 + 32; cout << "The temperature in Celsius: " << Celsius << endl; cout << "The temperature in Fahrenheit: " << Fahrenheit << endl; getchar(); getchar(); }
Output