Iam getting output
222
44444
6666666
888888888
1010101010101010101010
I want
0
2 4
6 8 10
12 14 16 18
my code is
class Try7{
public static void main( String arg[]){
for(int i=0;i<=10;i++){
for(int j=0;j<=i;j++){
if(i%2==0){
System.out.print(i);
}
}
System.out.println("");
}
}
}