How to Make a Calculator in Notepad
by Raven Codes in Circuits > Computers
32056 Views, 13 Favorites, 0 Comments
How to Make a Calculator in Notepad
My version of this calculator below.
https://www.instructables.com/files/orig/FBI/JV2F/I697QT9F/FBIJV2FI697QT9F.txt
Open Notepad
Open Note pad
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
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.