JavaScript is required to use Bungie.net

Foros

9/14/2013 7:28:07 AM
1
Add an if condition for the for loop and endl output that checks if counter is odd. If(counter%2) Do not include counter-- in if block As for the descending part, before running the while loop, decrement counter by 1 otherwise you will get two lines of seven *. In the while loop, use counter>0, then add the if statement to check for odd number. Then. In the for loop use x=counter-1;x>=0;x-- What you r currently doing in the for loop is assignong value 0 to x then decrementing it on every iteration and checking if it is greater than a positive num which will never happen, thus resulting in an infinite loop..
English

Publicando en idioma:

 

Pórtate bien. Echa un vistazo a nuestro Código de conducta antes de publicar tu mensaje. Cancelar Editar Crear escuadra Publicar

No se te permite acceder a este contenido.
;
preload icon
preload icon
preload icon