why if satetment need? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

why if satetment need?

31st Aug 2020, 4:49 AM
RADOWN BIN MONIR
RADOWN BIN MONIR - avatar
1 Resposta
+ 7
RADOWN BIN MONIR First of all kindly use the tags which relates to the code. Now the use of if statement is used to check a condition andĀ ifĀ the condition is true, we run a block ofĀ statementsĀ (called theĀ if-block), else we process another block ofĀ statementsĀ (called the else-block). But else isn't "compulsory" Hope this helpsšŸ¤Ÿ
31st Aug 2020, 4:56 AM
Piyush
Piyush - avatar