Loading...
Monday, 11 November 2013

Create Calculator Useing Notepad

Hello Every One This Is your Second Note Pad Tricks To creat A Beautifull Calculator Using Notepad.


Step 1: Go To start >> All Program>> Accessories >> notepad .
Step 2: Just Copy And Paste The Codes Below 
@echo off
color 4A
title MY CALCULATOR
:loop
cls
echo created by JASCO
echo web: http://jascotechnology.blogspot.com/
echo.
echo My Calculator
echo -----------------------------------------------
echo * = MULTIPLY
echo + = ADD
echo - = SUBTRACT
echo 2 = SQUARED
echo / = DIVIDE
echo After an equation, type CLEAR to clear the screen of your equations, type KEEP to leave them there, or type EXIT to leave.
:noclear
set /p UDefine=
set /a UDefine=%UDefine%
echo.
echo =
echo.
echo %UDefine%
echo KEEP, CLEAR, OR EXIT?
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==KEEP echo. && goto noclear
if %clearexitkeep%==EXIT (exit)
:misspell
echo.
echo -----------------------------------------------
echo Error!!! Please try again (Please make sure you are typing  all caps LIKE THIS).
echo Commands:
echo CLEAR Clear all previous equations and continue calculating.
echo KEEP Keep all previous equations and continue calculating.
echo EXIT Leave your calculating session
echo Enter in a command now.
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==EXIT (exit)
if %clearexitkeep%==KEEP goto noclear
goto misspell

Step 3:  Go To File Then Save as  Some name.bat 

You Are All Done . Dont For Get To Comment.

0 comments:

Post a Comment

 
Toggle Footer
TOP