Tuesday, 2 January 2018

2) Demonstration of Complex calculations


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

1) Introduction to Email

Introduction to Email Introduction Communication, the transfer of information, has been the key element needed ...