Friday, 23 August 2013

I want to generate 0..15 using a for loop and then display 5 numbers per column,this is the output [on hold]

I want to generate 0..15 using a for loop and then display 5 numbers per
column,this is the output [on hold]

I want to generate 0..15 using a for loop and then display 5 numbers per
column,this is the output
0 5 10
1 6 11
2 7 12
3 8 13
4 9 14
My code
int count = 14;
for(int x=0;x<count;x++) {
if (x<5)
system.out.print(x) ;

No comments:

Post a Comment