broadbringer

Untitled

Feb 25th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. with open('input.txt', 'r') as InputFile:
  2.          a = InputFile.read()
  3. a=int(a)
  4. i = 1
  5. f = 0
  6. while (a//i != 0):
  7.     (a//i)%10
  8.     i*=10
  9.     f+=1
  10. f+=2
  11. with open('output.txt', 'w') as OutputFile:
  12.    OutputFile.write("*"*f + '\n' + "*" + str(a) + "*" + '\n' + "*"*f)
Advertisement
Add Comment
Please, Sign In to add comment