Create your own calculator in notepad.

There is already a calculator provided in your operating system but you can also make your own calculator by batch programming. Batch programming is the method of writing a program in text editor which is saved with .bat extension and when this file is opened it works as program in of command prompt. You can make calculator by typing these command in notepad:-

1.open notepod or any other text editor and type/copy these codes.

@ECHO OFF
color a
title My Calculator
pause
ECHO —————————————- ——-
ECHO * = MULTIPLY
ECHO + = ADD
ECHO – = SUBTRACT
ECHO / =DIVIDE
ECHO —————————————- ——-
pause

:loop
echo.
echo —————————————- ——-
SET /p UDefine=
SET /a UDefine=%UDefine%
ECHO =
ECHO %UDefine%
ECHO.
goto loop

2.Now save file with any name and .bat extension.”calculator.bat” .

now whenever you open that file just follow the instructions and enjoy calculator in command prompt.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s