How to Make a Calculator in Notepad

15,777

13

6

Posted

Introduction: How to Make a Calculator in Notepad

My version of this calculator below.

https://www.instructables.com/files/orig/FBI/JV2F/I697QT9F/FBIJV2FI697QT9F.txt

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

:calc

cls

echo Add = +

echo Subtract = -

echo Divide = /

echo Multiply = *

echo Put your question here:

set /p equ=

set /a equ=!equ!

cls

echo Answer:!equ!

pause
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:

3 People Made This Project!

Recommendations

  • Science of Cooking

    Science of Cooking
  • Microcontroller Contest

    Microcontroller Contest
  • Spotless Contest

    Spotless Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

Comments

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