How to display Even numbers?

Can Anyone in here can help me? Just a basic program for you but not for me.
I need to display even numbers, limited by the user. If the user inputted 1-10, it'll be display even numbers from 1-10. Thanks in Advance :)
If your first number is not even, add one.

Next, you'll need a for-loop. Count by twos.
I answered it by myself, but thanks :)
Here it is for those who need.

1
2
3
4
5
6
7
8
int user,even=2;
cout<<"User Input: 1-";
cin>>user;
user=user/2;
cout<<"\nEven Numbers:\n";
	for (int a=1;a<=user;a++){
	cout<<even<<"\t";
	even=even+2;}
...okay, but that doesn't accept input in the manner indicated by your question. Glad you got it working, though.
Topic archived. No new replies allowed.