76 974
Assignments Done
Successfully Done
In June 2019

Answer to Question #24114 in Other Programming & Computer Science for monami

Question #24114
create a batch file program that performs 4 mathematical operations such as addition, subtraction, multiplication and division.
Expert's answer
@echo off

set /p a=Enter a:

set /p b=Enter b:

set /a sum=%a%+%b%

echo a + b = %sum%

set /a difference=%a%-%b%

echo a - b = %difference%

set /a product=%a%*%b%

echo a * b = %product%

set /a quotient=%a%/%b%

echo a / b = %quotient%


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions