Skip to main content
1 of 2
Timtech
  • 12.6k
  • 2
  • 45
  • 61

Windows Batch, 204

set a=0
:a
set /p i=^>^> 
if %i%==i set a=%a%+1
if %i%==x set a=%a%+1
if %i%==d set a=%a%-1
if %i%==s set a=%a%*%a%
if %i%==k set a=%a%*%a%
if %i%==o echo %a%
if %i%==c echo %a%
if %a%==256 set a=0
goto a

Successfully ignores other commands. Really got bloated without having or to work with...

Timtech
  • 12.6k
  • 2
  • 45
  • 61