how to print numbers using for loop in java?
Posted
by
Balkrushn Viroja
on Stack Overflow
See other posts from Stack Overflow
or by Balkrushn Viroja
Published on 2012-10-27T04:56:23Z
Indexed on
2012/10/27
5:00 UTC
Read the original article
Hit count: 97
I have one text box in which I take the value of how many number do you want to print. Now My question is that how can I use for loop so that the number which I want to print is equal to the number that I got from textbox.One more thing is that i want to print only three numbers in one line.
i.e. If I got 14 in my text box the result will look like below.
1 2 3
4 5 6
7 8 9
10 11 12
13 14
© Stack Overflow or respective owner