
প্রথমে আপনি start menu হতে notepad open করে
নিচের কোড টুকু লিখুন অথবা কপি পেস্ট করুন। তারপরে File>>save as এ গিয়ে my calculator.bat নামে & Save as type হতে all Files সিলেক্ট করে Desktop এ সেভ করুন, আতঃপর বানানো ফাইলে ডাবল ক্লিক করে উপভোগ করুন নিজের তৈরি ক্যালকুলেটর ।
@echo off
color 4A
title MY CALCULATOR
:loop
cls
echo created by Ismail Hossen Rana
echo _
echo email:ismail@programmer.net
echo web: www.ourpcsolution.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 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
0 Comments :
Post a Comment