#include <iostream>
#include <iomanip>
usingnamespace std;
//function prototypes
int getFahrenheit();
double calcCelsius(int tempF)
int main()
{
int fahrenheit = 0;
double celcius = 0.0;
//get input item
fahrenheit = getFahrenheit();
//calculate Celsius
celcius = calcCelsius(fahrenheit);
//display output item
cout << fixed << setprecision(0);
cout << "Celsius: " << celcius << endl;
system("pause")
return 0;
} //end of main function
//*****function definitions*****
int getFahrenheit()
{
int tempF = 0;
cout << "Enter Fahrenheit temperature: ";
cin >> tempF;
return tempF;
} //end of getFahrenheit function
double calcCelsius(int tempF)
{
double tempC = 0.0;
tempC = 5.0 / 9.0 * (tempF - 32.0);
return tempC;
} //end of calcCelsius function
for some reason it keeps giving me a
Error C2144: syntax error: 'int' should be preceded by ';' on line 16 column 1
Error C2143: syntax error: missing ';' before 'return' on line 34 column 1
IntelliSence: expected a ';' on Line 34 Column 2
I have tried to fix both of these problems and no matter what I do I either get more errors or they wont go away...
Well I tried selecting the error and were it told me the error was i tried to fix it there but apparently it was wrong place so it wasn't accurate as to were it was telling me...