Write the syntax of an if-else statement in C.
The if-else statement in C is used to execute a block of code conditionally. The syntax is as follows: if (condition) { // Code to be executed if the condition is true } else { // Code to be executed if the condition is false } Here, condition is an expression that evaluates to true … Read more