Header Ads Widget

Responsive Advertisement

Expression & Equation

Expression & Equation are an important part of programming.
In General they allow us to perform Operation.

Expression: an combination of values, variable, Operator and functions that evaluates to a single value.
e.g.
Expression can be simple like(2+3)
More complex like(2*x) + (3*y)
Note: To get a square of a number we need to **. e.g. 2**2= 4

Order of operations:
In expression and equation, the order in which operations are performed is important, as it is defined by a hierarchy of operators:
1- Paranthesis
2- exponential
3- multiplication and division(performed left to right)
4- addition and subtraction(performed left to right)






Post a Comment

0 Comments