A
Allan
Ok, I got some good advise. I re-wrote the program and now I'm down to only
1 error. Below is my code and my error. Any ideas what it is?
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
// Function main begins program execution
int main()
{
int tempinfah; //temp in Fahrenheit
int tempincel; //temp in Celsius
cout<<"enter temperature in Fahrenheit\n";//Prompting for user input
cin>>tempinfah; //user input
tempincel = (tempinfah-32)*(5/9)
cout<<"Temperature in Celsius" << endl;
return 0;
}
error: C:\Program Files\Microsoft Visual Studio\MyProjects\Assignment
11\11.cpp(24) : error C2146: syntax error : missing ';' before identifier
'cout'
Error executing cl.exe.
Assignment 11.exe - 1 error(s), 0 warning(s)
1 error. Below is my code and my error. Any ideas what it is?
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
// Function main begins program execution
int main()
{
int tempinfah; //temp in Fahrenheit
int tempincel; //temp in Celsius
cout<<"enter temperature in Fahrenheit\n";//Prompting for user input
cin>>tempinfah; //user input
tempincel = (tempinfah-32)*(5/9)
cout<<"Temperature in Celsius" << endl;
return 0;
}
error: C:\Program Files\Microsoft Visual Studio\MyProjects\Assignment
11\11.cpp(24) : error C2146: syntax error : missing ';' before identifier
'cout'
Error executing cl.exe.
Assignment 11.exe - 1 error(s), 0 warning(s)