How To Make A Calculator With Easy Codes In Notepad

Notepad is a very powerful text editor system in Windows operation system. Even you can build any programs in notepad system....! you know? Notepad works as like notepad plus plus but its inside area is nicely customised and better than notepad. In this tutorial, I will show you How to Make a Calculator in Notepad with some simple codes which are really so easy for you.

The calculator is a most common toy in our daily life for any countable matter. You just imagine that you use your own calculator by making with notepad programs. 

Yes....! You can just by following this post. So, let's see how can we make a calculator with a notepad by using some codes.
Read Also:
1. Java Source Code For Simple Animation Making With Swing
2. How To Make a Calculator In Java With Source Code
3. Tutorial About Changing Design Colours With Jquery Codes
How to Make a Calculator in Notepad, Make Calculator With Notepad.


How to Make a Calculator in Notepad

I am sharing with you two types of notepad codes for making a calculator. One is an old version and second is newly updated version codes. You can use both of them for making a calculator in notepad.

Old Version Codes Is Appear;
@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

Updated Version Codes Is Appear;
@echo off
@title:Calculator
setlocal EnableDelayedExpansion
color 1f
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 Make the Program

First, you need to copy the programs from above. 

  • Then go to start menu from windows and click all programs.
  • Accessories >> NotePad.
  • Paste the code inside the notepad area and save it in desktop with Calcualtor.bat (bat) - means batch file. 
  • Now double-click on the icon named Calculator and try to use it nicely. 
Hopefully, you will make it without any trouble. If have any question of them or face any problem. Then inform me via the comment section. I will try to solve it promptitude.

About luthfar rahman

Luthfar Rahman is a founder of "Guide to Blogging and Tech" ,He is a Blogger and Studying CSE at "North South University".Follow me on Facebook ,Google+ and Twitter.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment