0

Why if statement is used?

we can also output the 10 is greater than 5 without using if statement.

14th Feb 2017, 4:58 PM
Priyansh Prajapati
Priyansh Prajapati - avatar
3 Answers
0
To check the condition ....u can see if use in atm ..
14th Feb 2017, 7:32 PM
murphy
murphy - avatar
0
But what if you wanna do certain task if a number is greater than 5? Say, game over after 5 fail.
15th Feb 2017, 5:03 PM
Sungmin Woo
Sungmin Woo - avatar
0
Use if statement yo compare multiple statements.
20th Feb 2017, 2:26 AM
Nobel
Nobel - avatar