write a voting programme using if and else statements
Answers
Answered by
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
Business Studies,
1 month ago
Math,
3 months ago
Computer Science,
3 months ago
Physics,
10 months ago
Geography,
10 months ago