Saturday, June 19, 2010

How to make a calculator in batch

::~Instructions are started with ::~

::~Open notepad

::~Copy and paste the code below.

@echo off
color 1f
title Calculator
:start
cls
set /p math=Enter problem:
if %math%==Exit exit
set /a math2=%math%
echo %math%=%math2%
echo.
pause
goto start

::~Save as (anything).bat

1 comment: