What is the difference between if() and if-else statements?
Answers
Answered by
3
Answer:
With the if statement, a program will execute the true code block or do nothing. With the if/else statement, the program will execute either the true code block or the false code block so something is always executed with an if/else statement.......
Answered by
1
Explanation:
The if statement doesn't have else part means in if statement it will only specify that it is true or false. But in if else statement if the statement is false then it is specified in else part.
hi can we talk if yes reply in my ans
Similar questions