Need help doing simple project

Hello, I need to write a code that will display every odd number from 1 to 20.
How do I do it? Thank you.
Make a loop. In the loop, have some number that increases. Each time round the loop, if the number is odd, display it.
1
2
3
4
for(int i = 0; i<...; ++i)
{
    int odd = i * 2 +1;
}



you will figure out the rest
Topic archived. No new replies allowed.