-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLista3.py
More file actions
80 lines (71 loc) · 1.39 KB
/
Lista3.py
File metadata and controls
80 lines (71 loc) · 1.39 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#n = 1
#soma = 0
#while n<=10:
# x = int(input(f'{n} número: '))
# soma = soma + x
# media = soma / 10
# n = n + 1
#print (f'Média: {soma/10:.1f}')
#k = 1
#fat = 1
#n=int(input('número: '))
#while k <= n:
# fat = fat * k
# k = k + 1
#print (f'fat({n}) = {fat}')
#soma = 0
#n=0
#while True:
# x = int(input('n (zero sai): '))
# if x == 0:
# break
# else:
# n=n+1
# soma = soma + x
#print (f'média: {soma/n:.2f}')
#while True:
# nota=int(input('Entre 0 e 10: '))
# if nota <= 10:
# break
# else:
# print ('Valor inválido!')
#print ('Valor válido!')
#nota=11
#while nota <0 or nota >10:
# print ('Valor inválido!')
# nota=int(input('Entre 0 e 10: '))
#print ('Valor válido!')
#nome=input('Digite o nome de Usuário: ')
#senha=input('Digite a senha: ')
#while nome == senha:
# print ('Erro')
# nome=input('Digite o nome de Usuário: ')
# senha=input('Digite a senha: ')
#print ('Senha aceita!')
#A=80000
#B=200000
#anos = 0
#while A<B:
# A=A+(A*0.03)
# B=B+(B*0.015)
# anos=anos+1
#print(f'Serão precisos {anos} anos')
#fa=0
#fs=1
#f=0
#while f<=50:
# f=fa+fs
# fa,fs=fs,f
# print(f)
#a=int(input('Primeiro número: '))
#b=int(input('Segundo número: '))
#while a%b !=0:
# a,b = b,a%b
#print (b)
#n = int(input('Digite o valor de n: '))
#a,b=1,1
#k=1
#while k<=n-2:
# a,b=b,a+b
# k=k+1
#print(b)