Open a Notepad and copy the codes from this page and paste it in the Notepad. Save the file as Calc.bat
Your calculator is created.....
Codes are here given below......
@echo off
color 0A
title CALCULATOR VERSION 1.2(pal4all)
:loop
cls
echo By pal4all
echo Never-Seen-B4
echo.
echo Calculator Version 1.2(pal4all)
echo =====never======seen======b4=====pall4all=
echo * = MULTIPLY
echo + = ADD
echo - = SUBTRACT
echo 2 = SQUARED
echo / = DIVIDE
echo After an equation, type CLEAR to clear the screen of your equations,
echo type KEEP to leave them there,
echo 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 You misspelled your command. Please try again (make sure you are typing in 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
No comments:
Post a Comment