int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
system("pause");
return 0;
}
But no matter what I do I keep on getting this error, "expected `;' before string constant". Any idea what's wrong/what needs to be done? Any help at all would be greatly appreciated. Thank you in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am entering this code..
include <iostream.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
system("pause");
return 0;
}
But no matter what I do I keep on getting this error, "expected `;' before string constant". Any idea what's wrong/what needs to be done? Any help at all would be greatly appreciated. Thank you in advance!
There is more than one error with your code. Look at the errors from the top down. See what is different in this code:
include <iostream>
include<cstdlib>
using namespace std;
int main()
{
int x = 5;
int y = 7;
cout << "\n";
cout << x + y << " " << x * y;
cout << "\n";
system("pause");
return 0;
}