Skip to main content
Getting the input from the program argument instead of the standard input
Source Link
Visckmart
  • 361
  • 1
  • 4

Lua, 9494 91 84 bytes

n=io.read():upper()for i=65,90 do _,c=nc=(...):upper():gsub(string.char(i),"")if c~=0 then io.write(c~=0 and c)end or"")end

Try it online!Try it online!

Lua, 94 bytes

n=io.read():upper()for i=65,90 do _,c=n:gsub(string.char(i),"")if c~=0 then io.write(c)end end

Try it online!

Lua, 94 91 84 bytes

for i=65,90 do _,c=(...):upper():gsub(string.char(i),"")io.write(c~=0 and c or"")end

Try it online!

Source Link
Visckmart
  • 361
  • 1
  • 4

Lua, 94 bytes

n=io.read():upper()for i=65,90 do _,c=n:gsub(string.char(i),"")if c~=0 then io.write(c)end end

Try it online!