Created
November 13, 2014 11:16
-
-
Save JubbaSmail/ec9c2982b733e4877920 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set /p x= | |
| set /p op= | |
| set /p y= | |
| if "%op%"=="+" ( | |
| set /a z=%x%+%y%) | |
| if "%op%"=="-" ( | |
| set /a z=%x%-%y%) | |
| if "%op%"=="*" ( | |
| set /a z=%x%*%y%) | |
| if "%op%"=="/" ( | |
| set /a z=%x%/%y%) | |
| echo The answer is: %z% | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment