Demonstration
of Complex calculations
-
Write the problem as expression by applying BODMAS – [120000/50*{100+(100-80)}]
-
Create the commands to perform the expression (Start creating commands from the innermost loop)
-
Create the command as given below to print the output:
-
The same can be done in another way by assigning the result of the calculation as value to a variable and then print the value of the variable. (This method will be helpful when more number of calculations are involved)
No comments:
Post a Comment