Monday, March 8, 2021

Addition of Three Numbers Using Batch File in DOS

 A simple program that I wrote that will ask the user to give three numbers and then it will compute the sum of the three numbers using batch file programming in DOS (Disk Operating System)

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Program Listing

sum.bat

@ECHO OFF
echo.
echo ADDITION OF THREE NUMBERS USING BATCH FILE IN DOS
ECHO.
echo. CREATED BY MR. JAKE R. POMPERADA,MAED-IT,MIT
echo.
ECHO Enter First Value:
SET /P a=
ECHO Enter Second Value:
SET /P b=
ECHO Enter Third Value:
SET /P c=

ECHO.
SET /A Ans=%a%+%b%+%c%
ECHO The total sum is %Ans%.
ECHO.
ECHO Press any key to exit.
PAUSE>NUL

No comments:

Post a Comment