C++ HELP!!!

I am very lost with this problem I am trying to complete and I can't find anyone to help me. Problem: intialize counter to 10, counter<100, display counter by 2, add 10 to counter. the algorithm displays the numbers 20, 40, 60, 80, 100, 120, 140, 160, and 180. Code the algorithm into a program; use while statement. The counter variable should be an int variable named number. I am soooooooo lost. Can anyone help me in writing this program and using visual 2010? Thanks!
Well I don't know about counter < 100 but this gives you the example output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <iostream>
using namespace std;

int main()
{
	int counter;
	for (counter = 10; counter < 200; counter++)
	{
		if (counter % 20 == 0)
			cout << counter << endl;
			
	}
	return 0;
}


20
40
60
80
100
120
140
160
180
Thank you greatly. That shed a bit of light.
Not a problem. Hit me how to make the output match with just the 100.
1
2
3
4
5
6
7
8
9
10
11
int main()
{
	int counter;
	for (counter = 10; counter < 100; counter++)
	{
		if (counter % 10 == 0)
			cout << counter * 2 << endl;
			
	}
	return 0;
}
Topic archived. No new replies allowed.