-
Notifications
You must be signed in to change notification settings - Fork 114
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
Loops: while and for #50
Conversation
Álvaro Antonio seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Hey, I followed instructions to set my email address in Git and signed the CLA. Do I have to submit a new PR to make it work? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your translation is very good, there is just some little terms that I think could be correct.
I can't finish now. Thanks!
3. If `true` -- execute the loop body `alert(i)`, and then `i++` | ||
1. Executar `i = 0` uma vez antes de tudo (begin). | ||
2. Verificar a condição `i < 5`. | ||
3. Caso verdadeira (`true`), executar o corpo do loop `alert(i)`, e em seguida `i++`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write the verbs on simple present:
- Executa
- Verifica
- executa
|
||
Write a loop which prompts for a number greater than `100`. If the visitor enters another number -- ask them to input again. | ||
Escreva um loop que peça um número maior que `100`. Se o usuário digitar outro número, peça para digite digitar novamente. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "... peça para que digite
digitarnovamente."
|
||
Let's use a nested loop: | ||
Vamos utilizar um loop dentro de outro (isto é, aninhado): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add the "nested loop" term here, inside parenthesis.
if yes => the value is not a prime | ||
if no => the value is a prime, show it | ||
Para cada i no intervalo { | ||
testar se i tem um divisor de 1 a i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "testar" in simple present form.
Are you still available to proceed with the translation? |
This is my first pull request. Comments appreciated!