#include using namespace std; int main() { float inTemp, outTemp; char choice, again; again='y'; while(again == 'y') { cout << "Enter C to convert from Celsius to Fahrenheit." << endl; cout << "Enter F to convert from Fahrenheit to Celsius." << endl; cin >> choice; cout << "Enter a temperature to convert: " << endl; cin >> inTemp; if(choice=='C') { outTemp = (inTemp*(9.0/5.0)) + 32; cout << inTemp << " degrees Celsius is " << outTemp << " degrees Fahrenheit." << endl; } if(choice=='F') { outTemp = (inTemp-32) * (5.0/9.0); cout << inTemp << " degrees Fahrenheit is " << outTemp << " degrees Celsius." << endl; } cout << "Would you like to do another conversion? (y/n): "; cin >> again; } }