class Alternate
{
public static void main(Strin args [])
{
int x=0;
do
{
System.out.println(x); x+=1;
do {System.out.println(x); x+=2;}
while(x<=10);
}
while(x<=10);
}
}
the output is 0 1 3 5 7 9
but my probLem is ..
how can i make the output Like this
0
2
1
4
3
6
5
8
7
10
9
Please help me .. thanks Guys
Bambee