76 951
Assignments Done
Successfully Done
In June 2019

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

Question #24118
Create a batch file program that performs 4 mathematical operations such as addition, subtraction, multiplication and division.

The numbers to be entered must have 1 whole number and with 2 decimal points.
The output must be in the center of the screen.
Expert's answer
@echo off
rem DOS batch language doesn't support floating point operations

echo Enter mathematical expression:

set /p expression=
set /a result=%expression%

set result= & %result%
echo %result:~-40%

goto calc

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