A Basic Calculator In Batch

Basic calculator written in batch. Copy the given text & paste it on Notepad, then save it as calc.bat

@echo off
title Batch Calculator
echo -------------------------http://www.basicsofhacking.com-------------------------
echo Enter the values with operands (E.g. 1+1):
set /p input=
set /a result=%input%
echo Result is: %result%
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

You can also download the text fie from here.

Sharing is Caring

Related Posts

Next Post »

Thank you for your comment.