Powered by Tech-Attacks

BATCH file - CALCULATOR

Its a simple Batch file - calculator which uses:

+ for addition
- for subtraction
/ for division
* for multiplication



Paste the below code in any text - editor like Notepad and save it as "GJscalc.bat".
Note: use the extension " .bat "
 
Code for Batch file - calculator :

@echo off
start www.techattacks4u.blogspot.in

title Batch Calculator by G.J.theDJ
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator by
G.J.theDJ

echo --------------------------------------------------------------
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit

No comments:

Post a Comment