i=10000
f=15000
c=0
while i <f:
a= i%10
b=i//10000
if a==1 and b==1:
c=c+1
i+=1
print(c)
__________________________________________________________________
n =1345
t1=80
t2=50
t3=20
c=4
while c<= n:
if c<=n:
t1=t1+t2
print(t1)
c+=1
if c<=n:
t2=t2+t3
print(t2)
c+=1
if c<=n:
t3=t3+t1
c+=1
print(t3)
n =1345
t1=80
t2=50
t3=20
c=4
while c<= n:
if c<=n:
t1=t1+t2
print(t1)
c+=1
if c<=n:
t2=t2+t3
print(t2)
c+=1
if c<=n:
t3=t3+t1
c+=1
print(t3)
No hay comentarios:
Publicar un comentario