Guest User

Untitled

a guest
Mar 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. i = int(input("Input a number"))
  2. for n in range(1,i):
  3. if n % 2 == 0:
  4. i = i + n
  5. print(i)
Add Comment
Please, Sign In to add comment