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

Programando com JavaScript - Iniciante 3 / 3 - Números Ímpares #8

Open
lourranio opened this issue Dec 15, 2021 · 2 comments
Open

Comments

@lourranio
Copy link

lourranio commented Dec 15, 2021

img-desafio-3
img-desafio-3-solucao

SOLUCAO.

let lines = gets().split('\n')

let N = parseInt(lines.shift());

//complete o código
x = N;
for (i = 0; i <= x; ++i) {
if (i % 2 == 1) {
print( i );
}

}

@Pleiterson
Copy link
Owner

Pleiterson commented Dec 15, 2021

opa, não entendi? quer algo?

@lourranio
Copy link
Author

Pra voce add no codigo do java dos desafios da Dio.

Nesse codigo que voce postou > https://github.com/Pleiterson/desafios-bootcamps-dio/blob/master/Java/Solucionando%20problemas%20b%C3%A1sicos%20em%20Java/NumerosImpares.java

Tambem tem uma versao como eu coloquei nos prints.
Coloquei tambem o codigo da solucao.

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

2 participants