@echo off echo Type the first number. set /p num1= cls echo Type the second number. set /p num2= cls echo 1 - add echo 2 - subtract echo 3 - multiply echo 4 - divide set /p input= cls if %input%==1 goto :add if %input%==2 goto :subtract if %input%==3 goto :multiply if %input%==4 goto :divide if %input%==5 goto :exit :add set /a sum=%num1%+%num2% echo %sum% pause cls goto :exit :subtract set /a sum=%num1%-%num2% echo %sum% pause cls goto :exit :multiply set /a sum=%num1%*%num2% echo %sum% pause cls goto :exit :divide set /a sum=%num1%/%num2% echo %sum% pause cls goto :exit :exit exit