468x60 Ads

SUBSCRIBES MY BLOG


.

Sunday, July 25, 2010

How to do a calculator with your batch file

please open your notepad and copy the code below
----------------------------code------------------------------
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
---------------------------end code---------------------------

then paste to your notepad and save as "calculator.bat"

*note = you can change * with +,- and /

NOTE : - Please Give a credit to my blog if you take the idea from this blog

No comments: