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; }
Comments
Leave a comment