HOW TO MAKE A CALCULATOR USING NOTEPAD


Hello friends in my last post HOW TO MAKE COMPUTER SPEAK WHAT YOU TYPE i mentioned the steps to make a .vbs file that will speak what you will type. Today we will learn to make a calculator. It’s very easy, we just need to type a code a need to save it in .bat format.

What is .bat ?

.bat is an extension of batch files. Batch file is a text file that contains number of command for a computer’s operating system.

To make a calculator follow the given steps…..

# open notepad or press windows key + R and in the box type notepad and press enter

# now copy the code given below and paste it in notepad

@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

calculator using notepad

Now save this with .bat extension

THAT’S IT

Now you will find an icon like calculator open it and you you will see a calculator like , you can perform your calculations in this

You may also like:-

HOW TO MAKE COMPUTER SPEAK WHAT YOU TYPE

CHANGE YOUR PASSWORD WITHOUT KNOWING THE OLD ONE

MAKE A FAKE FILE USING COMMAND PROMPT

Advertisements

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