Advertisement
Guest User

Untitled

a guest
Sep 30th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. broj = int(input("Unesi broj(2, 4, 8, 16, 32, 64..........:"))
  2. i=1
  3. while i<broj :
  4. i=i*2
  5. if broj==i:
  6. print(broj," ",broj*2," ",broj*4," ",broj*8)
  7. else:
  8. print("Nevazeci broj!")
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement