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

Loops: while and for #50

Closed
wants to merge 3 commits into from
Closed

Conversation

alvar-o
Copy link

@alvar-o alvar-o commented Sep 4, 2019

This is my first pull request. Comments appreciated!

@CLAassistant
Copy link

CLAassistant commented Sep 4, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Á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.

@alvar-o
Copy link
Author

alvar-o commented Sep 4, 2019

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Á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?

@alvar-o alvar-o closed this Sep 4, 2019
Copy link
Contributor

@Mr-Saxobeat Mr-Saxobeat left a 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++`.
Copy link
Contributor

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.
Copy link
Contributor

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 digitar novamente."


Let's use a nested loop:
Vamos utilizar um loop dentro de outro (isto é, aninhado):
Copy link
Contributor

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
Copy link
Contributor

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.

@jonnathan-ls
Copy link
Contributor

@alvar-o

Are you still available to proceed with the translation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants