64 713
Assignments Done
99,4%
Successfully Done
In September 2018

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%


pause

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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions