Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- Title calculator
- Color 1f
- :start
- echo Command Prompt Calculator
- echo Press 1 for Addition
- echo Press 2 for Subtraction
- echo Press 3 for Multiplication
- echo Press 4 for Division
- echo Press 5 for Randomizer
- echo Press 6 to Clear
- echo Press 7 to Quit
- set /p type=
- if %type%==1 goto a
- if %type%==2 goto b
- if %type%==3 goto c
- if %type%==4 goto d
- if %type%==5 goto e
- if %type%==6 goto f
- if %type%==7 goto g
- :a
- echo Addition
- echo Please choose the 2 numbers you wish to add
- echo Type the first number
- set /p num1=
- echo Type the second number
- set /p num2=
- echo %num1%+%num2%?
- pause
- set /a Answer=%num1%+%num2%
- echo %Answer%
- pause
- goto start
- :b
- echo Subtraction
- echo Please choose the 2 numbers you wsh to subtract
- echo Type the first number
- set /p num1=
- echo Type the second number
- set /p num2=
- echo %num1%-%num2%?
- pause
- set /a Answer=%num1%-%num2%
- echo %Answer%
- pause
- goto start
- :c
- echo Multiplication
- echo Please choose the 2 numbers you wish to multiply
- set /p num1=
- set /p num2=
- echo %num1%*%num2%?
- pause
- set /a Answer=%num1%*%num2%
- echo %Answer%
- pause
- goto start
- :d
- echo Division
- echo Please choose the 2 numbers you wish to divide
- echo Type the first number
- set /p num1=
- echo Type the second number
- set /p num2=
- echo %num1%/%num2%?
- pause
- set /a Answer=%num1%/%num2%
- echo %Answer%
- pause
- goto start
- :e
- echo Randomizer
- echo Please guess what number it will project (0-99999)
- pause
- echo %random%
- pause
- goto start
- :f
- cls
- goto start
- :g
- cls
- echo.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement