aboutsummaryrefslogtreecommitdiff
path: root/semestr-3/pf/lista2/pot.py
blob: 7e86c8fb30ca48f6b82d03af1654aa19c19c29d5 (plain)
1
2
3
4
5
6
7
def fun(r):
  for i in range(r):
    n = 2**i
    while n > 10:
      n //= 10
    print(f"{i}: {2**i} {n} {'<-- ' if n == 1 else ''}")