Answer to Question #21347 in C++ for Candice Battle

Question #21347
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.
1
Expert's answer
2012-12-28T05:18:15-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS