Monday 23 May 2011

How to create a calculator through notepad?

In this article i'll tell you how to create your's personal calculator in just few seconds.


It's very cool and useful too. To do so
follow these steps:-
  1. Open notepad - Go to start > All programs > Accessories > Notepad or just simply press windows button + R ,type notepad and hit enter.
  2. Type/paste the following code - Copy the following code and paste in notepad.(Remember- do not change the code)

    @ECHO OFF
    color 0a
    title CALCULATOR
    ECHO Calculator Version 1.2
    ECHO Created by Vaibhav Gupta
    pause
    ECHO ---------------------------------------- -------
    ECHO Symbols for calculation -
    ECHO * = MULTIPLY
    ECHO + = ADD
    ECHO - = SUBTRACT
    ECHO / =DIVIDE
    ECHO ---------------------------------------- -------
    pause

    :loop
    echo.
    echo ---------------------------------------- -------
    SET /p UDefine=
    SET /a UDefine=%UDefine%
    ECHO =
    ECHO %UDefine%
    ECHO.
    goto loop

  3. Create the calculator - Save as calculator.bat
You are done! Test your new calculator.

0 comments:

Post a Comment

Dear visitor,
How-to updates its articles at regular intervals to ensure that you always receive the matter which is up-to-date. Even then if you are not satisfied by our article or having any complaint regarding our post, just leave a comment along with your e-mail address.