Allow the user to enter a series of temperatures in degree Celsius (C) terminated by the input of -999. For each one, find the corresponding temperature in degrees Fahrenheit (F). The conversion formula is: F = 9 * C/5 + 32.
#include <conio.h>
#include <iostream>
using namespace std;
int main()
{
float F,C;
cout<<"Enter degree Celsius: (-999 - exit): ";
cin>>C;
while(C!=-999){
F = 9 * C/5 + 32;
cout<<"Degree Fahrenheit is : "<<F;
cout<<"
Enter degree Celsius: (-999 - exit): ";
cin>>C;
}
return 0;
}