how to use the break and continue

help my the code i want to display this number
in odds and even
enter a number 2 the display is
2
4
6
8
10
12
14
16
18
20 <<< odd
and the next is enter a number 3 the display is
4
6
8
10
12
14
16
18
20
22 <<even
Clarify the problem; your question is enigmatically asked
Topic archived. No new replies allowed.