fork download
  1. local str = io.read("*l")
  2. if type(str) ~= "string" then str = tostring(str) end
  3. local count = io.read("*n")
  4. if type(count) ~= "number" then count = tonumber(count) end
  5.  
  6. for i=1,count,1 do
  7. str = '"'..str..'"'
  8. end
  9.  
  10. print(str)
Success #stdin #stdout 0s 2840KB
stdin
smart
20
stdout
""""""""""""""""""""smart""""""""""""""""""""