-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiplos.py
More file actions
31 lines (29 loc) · 1009 Bytes
/
Copy pathmultiplos.py
File metadata and controls
31 lines (29 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cont = 0
while True:
if cont == 0:
numero1 = int(input("Digite dois números: "))
numero2 = int(input("Digite dois números: "))
if numero1 == numero2:
print("Números são iguais. Programa encerrado. ")
break
else:
if numero1 > numero2:
print("Decrescente!")
cont += 1
else:
print("Crescente!")
cont += 1
else:
numero1 = int(input("Digite outros dois números: "))
numero2 = int(input("Digite outros dois números: "))
if numero1 == numero2:
print("Números são iguais. Programa encerrado. ")
break
else:
if numero1 > numero2:
print("Decrescente!")
cont += 1
else:
print("Crescente!")
cont += 1
cont += 1