Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. x=0
  2. j1=0
  3. j2=0
  4. valores_de_x=[]
  5. while x<100:
  6. k=3*x+2
  7. x+=1
  8. f=False
  9. while f==False:
  10. if 5*k==j1*3+4:
  11. f=True
  12. print("valor do quociente:")
  13. print(j1)
  14. print("para o número 5k:")
  15. print(5*k)
  16. print("vindo de k:")
  17. print(k)
  18. print("vindo de x:")
  19. print(x-1)
  20. (valores_de_x).append(x-1)
  21. elif 5*k==j2*3+4:
  22. f=True
  23. print("valor do quociente:")
  24. print(j2)
  25. print("para o número:")
  26. print(k)
  27. print("vindo de x:")
  28. print(x-1)
  29. (valores_de_x).append(x-1)
  30. else:
  31. f=False
  32. j1+=1
  33. j2-=1
  34. print(valores_de_x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement