Math block
To solve a mathematical and logical expression, SRON provides the Math block operators '{ }'. All you have to do is to put them on the left and right side of your expression.
- Here is a sample code to add two numbers using '+' operator.
Output:
4 Hello World!
- Here is a sample code to check if two integers are equal or not.
Output:
false true
You can use all Arithmetic, logical and comparison operators mentioned here inside Math block.
NOTE : You cannot use assignment operator (=, += ...) inside Math block, otherwise it will throw an compile time error.
Last updated