468,733 Members | 1,622 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

help regarding nested FOR loop programming

20
hi to all of you,

i whave program in which i have to display following results using nested for loops :-


1
2 3
4 5 6
7 8 9 10
11 12 13 14
15 16 17 18 19

i m learning java so plz help me if anyone know how to code program to display this result using only nested FOR loops

thankz in advance,,,,,,,,
Oct 28 '07 #1
3 1048
JosAH
11,448 Expert 8TB
hi to all of you,

i whave program in which i have to display following results using nested for loops :-


1
2 3
4 5 6
7 8 9 10
11 12 13 14
15 16 17 18 19

i m learning java so plz help me if anyone know how to code program to display this result using only nested FOR loops

thankz in advance,,,,,,,,
Are you sure that's the figure? Shouldn't that be:

1 <--- 1 number
2 3 <--- 2 numbers
4 5 6 <--- 3 numbers
7 8 9 10 <--- 4 number
11 12 13 14 15 <--- 5 numbers
16 17 18 19 20 21 <--- 6 numbers etc.

kind regards,

Jos
Oct 28 '07 #2
abhu50
20
ya i m defintinely sure dude !!!!!!!
it is correct if anyone know it's coding then try to telll me
thankz
Oct 28 '07 #3
JosAH
11,448 Expert 8TB
ya i m defintinely sure dude !!!!!!!
it is correct if anyone know it's coding then try to telll me
thankz
So you want 1, 2, 3, 4, 4 and 5 numbers in each row? And btw, noone is going
to give you "it's coding" here; click the 'help' link near the top right corner of this
page and read the forum policies.

kind regards,

Jos
Oct 28 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Martin Schou | last post: by
46 posts views Thread by Neptune | last post: by
77 posts views Thread by M.B | last post: by
Reika
5 posts views Thread by Reika | last post: by
8 posts views Thread by cheetahclaws | last post: by
3 posts views Thread by Michel Esber | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.