Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. x = 1
  2. max_1 , max_2 = 0 , 0
  3. R1 = 3600
  4. k = -1
  5. while x != 0:
  6. x = int(input())
  7. k += 1
  8. if (x % 6 == 0) and (x > max_1):
  9. max_1 = x
  10. elif (x % 6 == 0) and (x > max_2):
  11. max_2 = x
  12. R2 = max_1 * max_2
  13. print(R1)
  14. print("Получено " + str(k) + " чисел")
  15. print("Полученное контрольное значение: " + str(R1))
  16. print("Вычисленное контрольное значение: " + str(max_1 * max_2))
  17. if R2 == R1:
  18. print("Контроль пройден")
  19. else:
  20. print("Контроль не пройден")
  21. print(max_1 , max_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement