Computer Science, asked by 8hsyedaraisa, 4 months ago

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 deveshkumar9563
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