i need help with this code. I know it is very basic and even explained in the tutorials but when i write it myself there is an error. here is code
i just cant find what is wrong with it. I copied/pasted the tutorial code which worked fine but this wont work. the error that comes is saying 'end1' is not undeclared. when i do int end1; it at least starts but doesnt do what its supposed to. please help as i am still new.Code:#include <iostream> using namespace std; int main() { for (int x = 0; x < 11; x++ ) { cout<< x <<end1; } cin.get(); }
-thanks in advance