Skip to main content

Featured

WIN ALL ACTEVETED LIFETIME

  Search for: Recent Posts Simple trick to install Windows 11 on an old PC Easy ways to activate Windows 11 for FREE without a product key Remove “You may be a victim of software counterfeiting” notification Windows Defender detects my scripts as “HackTool:BAT/AutoKMS” Quickly convert Windows Server Evaluation edition to the retail one Easiest way to remove the Windows watermark from your screen Categories Computer Tips Microsoft Software Products 2 ways to activate Windows 10 for FREE without additional software Posted by  Always Smile   in  Microsoft Software Products  /  Last updated on  August 26, 2021 As you know, Microsoft notified Windows 10 is “the last version of Windows” and explained that they will be focused on the development of powerful and new features under the guise of software updates instead of building a new version. This means there will be no Windows 11 or 12 in the future(*). So if you are thinking about an upgrade, this is the b...

 

Code :

@echo off
 Title OnlineCmag-Calculator
 :start
 Echo Press 1 for Addition
 echo Press 2 for Subtraction
 echo Press 3 for Multiplication
 echo Press 4 for Division
 echo Press 5 to Quit
 set /p type=
 if %type%==1 goto a
 if %type%==2 goto b
 if %type%==3 goto c
 if %type%==4 goto d
 if %type%==5 goto e
 :a
 echo Addition
 echo Type The 2 Numbers To Add
 set /p num1=
 set /p num2=
 echo %num1%+%num2%?
 pause
 set /a Answer=%num1%+%num2%
 echo %Answer%
 pause
 goto start
 :b
 echo Subtraction
 echo Type The 2 Numbers To Substract
 set /p num1=
 set /p num2=
 echo %num1%-%num2%?
 pause
 set /a Answer=%num1%-%num2%
 echo %Answer%
 pause
 goto start
 :c
 echo Multiplication
 echo Type The 2 Numbers To Multiply
 set /p num1=
 set /p num2=
 echo %num1%*%num2%?
 pause
 set /a Answer=%num1%*%num2%
 echo %Answer%
 pause
 goto start
 :d
 echo Division
 echo Type The 2 Numbers To Divide
 set /p num1=
 set /p num2=
 echo %num1%/%num2%?
 pause
 set /a Answer=%num1%/%num2%
 echo %Answer%
 pause
 goto start
 :e
 echo. Done!

Step 3 : Save The Text File :

Make Your Own Calculator Using Notepad
Now Save the file with a ” .bat ” extension i.e something like ” OnlineCmag-Calculator.bat ” . Select the file type as ” All Files ” and encoding To ” ANSI ”  .


Step 4 : Run The File :

Make Your Own Calculator Using Notepad

Execute the file by just double clicking on it . Now You will be asked to choose the operation to be performed .

Make Your Own Calculator Using Notepad

Share Your View And Opinions In Comments…


Comments

Popular Posts