How to use the if-then statement?
if-then is the most basic control flow statement. It will execute the block of statement only if the test expression evaluated equals to
true. Let's see the example below:
The result of the above program is:
A(10) is bigger than B(5)
B(5) is smaller that A(10)