Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to make Menu based Calculator using the .bat file or batch scripting
ChannelHiTech WikiDescription from the creator
HiTech Wiki ,
In this videos we are making the manu based calsulator using the .bat or batch scripting file.......
1.First open the "Notepad"
2.Write the code as shown below :
@echo off
title Calculator
:main
echo Menu:
echo 1.Addition
echo 2.Substration
echo 3.Multiplication
echo 4.Division
echo 5.Exit
set /p ch=Enter your choice
if %ch%==1 goto add
if %ch%==2 goto sub
if %ch%==3 goto mul
if %ch%==4 goto div
if %ch%==5 goto exit
:add
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sum=a+b
echo Result =%sum%
goto main
:sub
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sub=a-b
echo Result =%sub%
goto main
:mul
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sum=a*b
echo Result =%sum%
goto main
:div
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sum=a/b
echo Result =%sum%
goto main
:exit
echo Thanks for using
timeout /t 3
exit
3. Save the file as Demo.bat
4.Then open the saved Demo.bat file from saved location by double clicking on it......
5.Now use the Calculator
Any querie contact us on : [email protected]
In this videos we are making the manu based calsulator using the .bat or batch scripting file.......
1.First open the "Notepad"
2.Write the code as shown below :
@echo off
title Calculator
:main
echo Menu:
echo 1.Addition
echo 2.Substration
echo 3.Multiplication
echo 4.Division
echo 5.Exit
set /p ch=Enter your choice
if %ch%==1 goto add
if %ch%==2 goto sub
if %ch%==3 goto mul
if %ch%==4 goto div
if %ch%==5 goto exit
:add
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sum=a+b
echo Result =%sum%
goto main
:sub
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sub=a-b
echo Result =%sub%
goto main
:mul
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sum=a*b
echo Result =%sum%
goto main
:div
cls
echo Enter first number
set /p a=num1 :
echo Enter second number
set /p b=num2 :
set /a sum=a/b
echo Result =%sum%
goto main
:exit
echo Thanks for using
timeout /t 3
exit
3. Save the file as Demo.bat
4.Then open the saved Demo.bat file from saved location by double clicking on it......
5.Now use the Calculator
Any querie contact us on : [email protected]
About this tutorial
HiTech Wiki published this 10:17 video tutorial on November 9, 2018. It has been watched 1,547 times on YouTube.
- Channel
- HiTech Wiki
- Category
- Science & Technology
- Duration
- 10:17
- Published
- November 9, 2018
- Views
- 1,547
- Likes
- 25
Share
This tutorial in other languages
- FRComment faire en fonction du menu calculatrice en utilisant le fichier .bat ou les scripts de traitement par lots
- ESComo hacer menú basado calculadora utilizando el archivo .bat o secuencias de comandos por lotes
- PTComo fazer menu baseado calculadora utilizando o arquivo .bat ou scripting batch
- ITCome rendere menu basato Calcolatrice utilizzando il file .bat o scripting in batch
- DEWie machen Menü basierend Rechner die .bat-Datei oder Batch-Scripting
- NLHoe maak je Menu gebaseerd Calculator worden gemaakt via de .bat bestand of batch scripting
- RUКак сделать меню на основе калькулятора с помощью файла .bat или пакетного сценариев
- PLJak zrobić menu oparte Kalkulator pomocą pliku wsadowego .bat lub włączony
- JA.batファイルまたはバッチスクリプトを使用して計算ベースのメニューを作成する方法
- ARكيفية جعل القائمة على أساس حاسبة باستخدام ملف .bat أو البرمجة دفعة
- HI.bat फ़ाइल या बैच पटकथा का उपयोग कर आधारित कैलक्यूलेटर मेनू बनाने के लिए
- IDCara membuat menu berdasarkan Kalkulator menggunakan Kelelawar file atau scripting bets