+ 1

What is if statement when we use it and where we use

15th Jul 2021, 9:34 AM
Sudharsan
2 Answers
+ 1
If statement are used to check conditions Its syntax is If(condition){code to execute} It will only execute the code in curly braces if the condition is true Example if(2 == 2){ //Will execute the code which is written here }
15th Jul 2021, 9:56 AM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar