Write Program Performs Basic Mdas Multiplication Division Addition Subtraction Calculation Q37117862

Write a program that performs the basic MDAS (Multiplication-Division-Addition-Subtraction) calculation. From cin your prograWrite a program that performs the basic MDAS (Multiplication-Division-Addition-Subtraction) calculation. From cin your program takes one string with a length of 3, consisting of 1. A number digit (o through 9) 2. An operator+or or or ) 3. Another number digit (e through 9) The following is a list of input examples. 1+5 : 2*9 : 5/0 Your programs job is to print the result of the calculation followed by endl. The results for the example inputs are . 18 . ERROR The last

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.