Computer Science, asked by singhaaradhya0126, 11 days ago

write a voting programme using if and else statements​

Answers

Answered by djhardas82
4

Explanation:

In the last tutorial we learned how to use if statement in C. In this guide, we will learn how to use if else, nested if else and else if statements in a C Program.

C If else statement

Syntax of if else statement:

If condition returns true then the statements inside the body of “if” are executed and the statements inside body of “else” are skipped.

If condition returns false then the statements inside the body of “if” are skipped and the statements in “else” are executed.

if(condition) { // Statements inside body of if } else { //Statements inside body of else }

Similar questions