Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

la var i en bucle no se muestra bien #1

Open
aidafer opened this issue Jun 1, 2017 · 0 comments
Open

la var i en bucle no se muestra bien #1

aidafer opened this issue Jun 1, 2017 · 0 comments

Comments

@aidafer
Copy link
Contributor

aidafer commented Jun 1, 2017

//esto es lo que metemos en ginger

repetir 100
@num = @num + 1
si @num % 2 == 0
mostrar @num

//esto es lo que me convierte en panel de javascript

for(var $=0;$<100;$++){
}
num = num + 1;
if(num % 2 == 0){
}
console.log(num);
  • y evidentemente no sale, lo que quiero cuando le doy a probar es que me devuelva los números pares del 1 al 100, la var i la pone con $ y yo pretendo declarar i con @num y se supone que el bucle for debería de salir como: for (var i = 0; i < 100; i++)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant