Skip to content

📝 Adicionado atividade 5 e 36 concluída#23

Open
louicosta wants to merge 1 commit intoreprograma:mainfrom
louicosta:main
Open

📝 Adicionado atividade 5 e 36 concluída#23
louicosta wants to merge 1 commit intoreprograma:mainfrom
louicosta:main

Conversation

@louicosta
Copy link

Tentei usar break e continue pra entender quando o número final é menor que o inicial, mas falhei miseravelmente... :'(

for i in range(20):
num = int(input(f'Digite o {i+1}º número: '))
numeros.append(num)
if num % 2 == 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pode usar somente o if num % 2:, mas não está errado assim!

inicio = int(input('Começar por: '))
fim = int(input('Terminar em: '))

print(f'Vou montar a tabuada de {numero_a_ser_multiplicado} começando em {inicio} e terminando em {fim}:')
Copy link
Collaborator

@belisarenata belisarenata Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faltou a travinha, mas parabéns por tentar usar break e continue!

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

Successfully merging this pull request may close these issues.

2 participants