if else statements should not end with ; cause thatll just end that statement
so it should be like this:
Code:
if( whichconversion == 1 ) {
cout << "Enter the F temp you want to convert: " << endl;
cin >> Fahrenheit;
FtoC(Fahrenheit);
}else if( whichconversion == 2) {
cout << "Enter the C temp you want to convert: " << endl;
cin >> Celsius;
CtoF(Celsius);
}
Code:
void FtoC(double n){
newCtemp = 0.555555555555556*Fahrenheit-32.0
cout << Fahrenheit << "Fahrenheit is equal to " << newCtemp << "Celsius" << endl;
}
void CtoF(double n){
newFtemp = 1.8*(Celsius+32.0)
cout << Celsius << "Celsius is equal to " << newFtemp << "Fahrenheit" << endl;
}
in here u r MISSING ; in the temp variables