Saturday, 25 March 2017

Calculator Using Batch File

Hello friends,
Here is the code for how to make a calculator by using batch files.
copy and paste the following code in notepad, as given below and then save the file as "calculator.bat"

@echo off
title Batch Calculator by Ankit
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator by AnKiT :D
echo --------------------------------------------------------------
echo.
set /p sum=
set a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top/
pause
exit

Have a look on this Video

0 comments:

Post a Comment