Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 10. Степени на 2 (for)
- # Въведете цяло число n. Използвайте for, за да отпечатате всички степени на 2 от 0 до n (включително).
- deg = int(input("Please enter the degree: "))
- for i in range(0, deg + 1):
- print(2 ** i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement