Advertisement
sigmachto

Untitled

Jun 30th, 2023
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #1)
  2.  
  3. x = int(input())
  4. while (x % 2 != 0) and (x % 10 != 5):
  5. x = int(input())
  6.  
  7. #2)
  8. for i in range(10):
  9. print(i)
  10.  
  11. #3)
  12. K = int(input())
  13. N = int(input())
  14. s = 0
  15. while K <= N:
  16. if K % 2 == 1:
  17. s += K
  18. K += 1
  19. print(s)
  20. #Ответ: 768182441
  21.  
  22. #4)
  23. s = 1
  24. n = int(input())
  25. for x in range(1,n+1):
  26. s *= x
  27. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement