fork download
  1. printl('Hello, World!')
  2. n = int(input())
  3. for i in [0:n+1]
  4. r = exp(log(2)*i)
  5. print(round(r), " ")
  6. end
Success #stdin #stdout 0.01s 6768KB
stdin
30
stdout
Hello, World!
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 134217728 268435456 536870912 1073741824