Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- counter = 0
- for i in range(n + 1):
- for j in range(n + 1):
- for k in range(n + 1):
- if i + j + k == n:
- counter += 1
- print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement