0

If else

In conditions if we use ( a== 1),what is the meaning of that

11th Nov 2020, 5:47 AM
Nandini Reddy
3 Answers
+ 7
Nandini Reddy a equals to 1 the statement is true The if and else statements are used to compare and contrast a statement. Print 'yes' if it's true and 'no' if it's false.
11th Nov 2020, 5:49 AM
ㅤㅤㅤ
+ 2
It means that if a is equal to 1,then the statements in the brackets of if will be executed otherwise not. Hope it helps
11th Nov 2020, 5:55 AM
Coder##***
Coder##*** - avatar
+ 1
If a equals to 1 then any statement in the body of if loop is executed If condition is false or 0 then any statement in the body of else loop is executed
11th Nov 2020, 7:33 AM
Shivam Mishra
Shivam Mishra - avatar