Code:
@echo off
title Batch Calculator
echo -------------------------http://www.minsoeyarsar.com-------------------------
:1
echo Enter the values with operands (E.g. 1+1):
set /p input=
set /a result=%input%
echo Result is: %result%
:2
echo Wanna continue? Press Y for yes Or N for No
set /p "choice=>"
if %choice%==Y goto 1
if %choice%==N goto end
echo Invalid choice
goto 2
:end
exit
Friday, November 23, 2012
Basic Calculator In Batch
Subscribe to:
Post Comments (Atom)





0 comments:
Post a Comment