Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Premium Land with House for Sale
anil1961
Updated:
Friday at 10:15 AM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Aug 19, 2026
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Aug 18, 2026
🎬 CapCut Pro 1 Month Access! LKR 600
sayuru bandara
Updated:
Aug 18, 2026
🚀 Google One AI PRO Plan (Gemini Pro Activation) – 18 Months Access! LKR 2200
sayuru bandara
Updated:
Aug 18, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
බේසික්ම බේසික් Calculator එකක් Batch වලින්
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Geshi95" data-source="post: 28293049" data-attributes="member: 539934"><p>[CODE=bash]</p><p>@echo off</p><p>title Calculator</p><p>color 0a</p><p>:main</p><p>cls</p><p>set /p fn=First Number: </p><p>set /p sn=Second Number: </p><p>echo Choose Any Operator +, -, *, /, %%</p><p>set /p op=Operator: </p><p>goto condition</p><p>:condition</p><p>if %op%==+ (goto add)</p><p>if %op%==- (goto sub)</p><p>if %op%==* (goto mul)</p><p>if %op%==/ (</p><p> if %sn%==0 (echo Can't Divide by Zero!) else (goto div)</p><p>) </p><p>if %op%==%% (goto mod)</p><p>:add</p><p>set /a addition=%fn%+%sn%</p><p>echo %addition%</p><p>goto ask</p><p>:sub</p><p>set /a substraction=%fn%-%sn%</p><p>echo %substraction%</p><p>goto ask</p><p>:mul</p><p>set /a multiplication=%fn%*%sn%</p><p>echo %multiplication%</p><p>goto ask</p><p>:div</p><p>set /a divition=%fn%/%sn%</p><p>echo %divition%</p><p>goto ask</p><p>:mod</p><p>set /a modulus=fn%%sn</p><p>echo %modulus%</p><p>goto ask</p><p>:ask</p><p>echo Do you want to do another calculation?</p><p>set /p yn=Y/N : </p><p>if %yn%==y (goto main) else (exit)</p><p></p><p></p><p></p><p>[/CODE]</p><p></p><p>කැමති නමක් දාලා.bat කියලා save කරලා run කරන්න. <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Geshi95, post: 28293049, member: 539934"] [CODE=bash] @echo off title Calculator color 0a :main cls set /p fn=First Number: set /p sn=Second Number: echo Choose Any Operator +, -, *, /, %% set /p op=Operator: goto condition :condition if %op%==+ (goto add) if %op%==- (goto sub) if %op%==* (goto mul) if %op%==/ ( if %sn%==0 (echo Can't Divide by Zero!) else (goto div) ) if %op%==%% (goto mod) :add set /a addition=%fn%+%sn% echo %addition% goto ask :sub set /a substraction=%fn%-%sn% echo %substraction% goto ask :mul set /a multiplication=%fn%*%sn% echo %multiplication% goto ask :div set /a divition=%fn%/%sn% echo %divition% goto ask :mod set /a modulus=fn%%sn echo %modulus% goto ask :ask echo Do you want to do another calculation? set /p yn=Y/N : if %yn%==y (goto main) else (exit) [/CODE] කැමති නමක් දාලා.bat කියලා save කරලා run කරන්න. :) [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom