Hello everyone,
I started studying Java today and couldn't understand why this code would give the result bellow it:
INPUT:
OUTPUT:
*
(1 space) *
(2 spaces) *
(3 spaces) *
(4) *
(5) *
and so on...
there is no instruction for how many (' ') (space) to type before the ('*').
I mean, shouldn't it be like this?
*
(1 space) *
(1 space)*
(1 space) *
(1 space)*
and so on...?
In the first run - no space, but from the second - there is space, but only one.... isn't it?
Thanks for helping...
Kobi.