How to crate calculator in your notepad

INTRO: HOW TO MAKE A CALCULATOR IN NOTEPAD

My version of this calculator below.

Add TipAsk Question

STEP 1: OPEN NOTEPAD

Open Note pad



STEP 2: 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.


Comments