C++ Programming Code Examples C++ > If Else and Switch Case Code Examples Are you a Robot Break statement in Switch Case C++ Program to Check Leap Year C++ Program to Check Whether Number is Even or Odd Make a Simple Calculator to Add, Subtract, Multiply or Divide Check the number is an Even or Odd Check Leap Year or Not Check Original Equal Reverse or Not Count Occurrence of Positive, Zero and Negative Numbers Switch Case statement is mostly used with break statement even though the break statement is optional. If else statement in C++ Programming if Statement Program in C++ If statement in C++ - check the number is less than 100 or not If Statement - display even numbers if..else Statement Program In C++ if-else Statement - check the password If-Else Statement - check even or odd if-else-if statement is used when we need to check multiple conditions. When there is an if statement inside another if statement then it is called the nested if statement. If we write an entire if-else construct within either the body of the if statement or the body of an else statement. Odd Or Even Program Using Functions Check if an integer is odd or even In C++ Switch case statement in C++ programming Switch statement program in c++ to calculate grade points gpa Switch Statement - what time is it Switch Statements or Control Statements The if Statement - C uses the keyword if to implement the decision control instruction. The if-else Ladder/else-if Clause The if-else Statement