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

Progressão Aritmética #3

Open
201flaviosilva opened this issue Sep 28, 2022 · 0 comments
Open

Progressão Aritmética #3

201flaviosilva opened this issue Sep 28, 2022 · 0 comments
Labels
enhancement New feature or request Exercise good first issue Good for newcomers

Comments

@201flaviosilva
Copy link
Member

termo = int(input("Termo: "))
r = int(input("Razão: "))
max = int(input("Número: "))
result = termo

print("-" * 10)
while result != (termo + ( r * max )):
    print(f"{result} → ", end = "")
    result += r

print("FIM")
print("-" * 10)
@201flaviosilva 201flaviosilva added the enhancement New feature or request label Sep 28, 2022
@201flaviosilva 201flaviosilva added the good first issue Good for newcomers label Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Exercise good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant