write a program to accept a number and check whether it is greater than 5 or not. Use if else and write two outputs.
Answers
Answered by
0
It is also called as branching as a program decides which statement to execute based on the result of the evaluated condition.
It is one of the powerful conditional statement. If statement is responsible for modifying the flow of execution of a program. If statement is always used with a condition. The condition is evaluated first before executing any statement inside the body of If.
Similar questions
Hindi,
2 months ago
Math,
2 months ago
Physics,
2 months ago
Social Sciences,
4 months ago
Computer Science,
10 months ago
Geography,
10 months ago
Math,
10 months ago