how to print numbers using for loop in java?
- by Balkrushn Viroja
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