Batch Programming :How To make a Simple Calculator in Batch programming


image of Calculator

Today Friends I Want To Tell You How To Make a Simple Calculator

in batch programming. here is the Source Code...

Text Editor :- Notepad

Save as :- .bat file

Created By :- Deepak Gupta
                     http://www.i-world-tech.blogspot.in/


 @echo off
color b0
:home
title Calculator
echo Simple Calculator in Batch programming
echo Designed By :- Deepak Gupta
echo www.i-world-tech.blogspot.in
echo Enter the First Operand
set /p one=
cls
echo Enter the Operator [+,-,*, /]
set /p two=%one%...
echo Enter the Second Operand
set /p three=%one%%two%
set /a final=%one%%two%%three%$
cls
echo Result
echo %one%%two%%three%=%final%
pause
cls
goto home


Now , 

Step-1. You Copy the Source code and paste in Notepad .

Step-2. Save it as .bat file .

            Enjoy With Your Simple Calculator in Batch programming...



Thank You To All My Reader
Deepak Gupta
www.i-world-tech.blogspot.in


Comments

Post a Comment