Advertisement
imariia777

Untitled

Jul 8th, 2023
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #1
  2. x = int(input())
  3. while x % 2 != 0:
  4.     x = int(input())
  5. answer: x % 2 != 0
  6.  
  7. #2
  8. for i in range (10):
  9.     print(i)
  10. answer: i 10
  11.  
  12. #3
  13. k = int(input())
  14. n = int(input())
  15. m = 0
  16. while m < n:
  17.     for i in range (k, n+1):
  18.         if i % 2 == 0:
  19.             continue
  20.         else:
  21.             m += i
  22. print(m)
  23. answer: 768182441
  24.  
  25. #4
  26. n = int(input())
  27. x = 1
  28. for i in range (1, n+1):
  29.     x *= i
  30. print(x)
  31. answer: 3628800
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement