Hey guys I'm new to the variables in C++ I use TurboC++ program. If you could, please help me get rid of this one error that keeps popping up... It says "Declaration terminated incorrectly" and when I click on the error it tells me its the "{" at the beginning
Anyone know whats wrong?
Thanks
#include <iostream.h>
{
cout << "Hey." << endl;
cout << "Look what I made."
#include <iostream.h>
void main()
//math
int x,y; //declare two integer variables, x and y
x=20; //set x to 20
y=10; //set y to 10
x=x+0; //add 1 to x
y=y*2; //divide y by 2
cout << "x equals: " << x << " and y equals: " << y << endl;
}