Introduction: How to Make a Calculator in Notepad

Picture of How to Make a Calculator in Notepad

My version of this calculator below.

Step 1: Open Notepad

Open Note pad

Step 2: How to Make the Program

Type this (you dont need spaces)

@echo off

setlocal EnableDelayedExpansion

mode 30,10



echo Add = +

echo Subtract = -

echo Divide = /

echo Multiply = *

echo Put your question here:

set /p equ=

set /a equ=!equ!


echo Answer:!equ!

goto calc

Step 3: How to Save the Program

Save as calculator.bat

(bat) - means batch file

a batch file is illegal to send over the internet so send as a text file...

or convert to an exe file which will make it an application.

Step 4:

Step 5:


UltraG1 made it! (author)2017-04-05

i also made 1 but mine is little more advance im an medium DOS programmer, but my only single problem to my calculator was the division i can't divide 2 divided by 10 it will answer 0, i wonder why now i know. Because / (exclamation mark) was listed as Function Script to the DOS so it will read as the built in DOS script not division. And also it's different to *, %, $ &,


<parsers id="cpp_class" displayName="C++ Class" commentExpr="((/\*.*?\*)/|(//.*?$))">
<parsers id="c_function" displayName="C source" commentExpr="((/\*.*?\*)/|(//.*?$))">

UltraG1 (author)UltraG12017-04-05

By: Blant Art TOM Club

LooseI made it! (author)2016-11-19

i made it

MsSweetSatisfaction (author)2015-02-21

Very clever coding! I just wish there more detailed steps, it can really help people to replicate your awesomeness!

About This Instructable




Bio: Returning to To show off my new batch game in the works Called Asteroid Belt! - Raven
More by Raven Codes:Making a game with notepadBatch File TimerCustom Alarm Clock with notepad
Add instructable to: