Wednesday 6 April 2011

How To Make A Calculator Using Batch File

To create a calculator using batch file open notepad and copy the code below


echo off
cls
echo.
echo This is multiplication calculation
set/p "user=FirstNo=>"
set/p "pass=SecondNo=>"
set /a a=%user%*%pass%
echo so the answers is = %a%
pause >nul
Paste the copied code in your notepad and save as "calculator.bat" or any other name with bat extension
you can change * with +,- and / to perform various operations

No comments:

Post a Comment