Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions exercicios/para-casa/atividade-em-sala.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Codigo 01


for i in range(11):
print (i)
21 changes: 21 additions & 0 deletions exercicios/para-casa/atividade05.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Questão 05 - Faça um programa que leia 20 números inteiros e armazene-os num vetor. Armazene os numeros pares no vetor Par e os numeros impares no vetor Ímpar. Imprima três vetores.

# vetores
numeros = []
par = []
ímpar = []

for i in range(20):
numero = int(input(f"Adicione o {i+1}º numero: "))
numeros.append(numero)

for numero in numeros:
if numero % 2 == 0:
par.append(numeros)
else:
ímpar.append(numero)

print("numeros digitados:", numeros)
print("numeros pares:", par)
print("numeros impares:", ímpar)

16 changes: 16 additions & 0 deletions exercicios/para-casa/atividade36.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Questão 36

numero_tabuada = int(input("Tabuada de: "))

inicio_tabuada = int(input("iniciar por: "))
fim_tabuada = int(input("terminar em: "))

while fim_tabuada < inicio_tabuada:
print("Valor final deve ser maior ou menor que o inicial.")
fim_tabuada = int(input("termina em: "))
print(f"montar a tabuada de {numero_tabuada} começando em {inicio_tabuada} e terminando em {fim_tabuada}:")

for i in range(inicio_tabuada, fim_tabuada + 1):
resultado = numero_tabuada * i
print(f"{numero_tabuada} x {i} = {resultado}")