C Programming Code Examples C > If Else and Switch Case Code Examples GCD for both positive and negative numbers Program to Check Alphabet Program to Check Leap Year Simple Calculator using switch Statement Find Even Odd Program In C Find Positive-Negative Program In C How to use switch: char IF and endif preprocessor if command in C programming language If else if and else - Guess the magic number If else statement inside a for loop If Else Statement - Guess the magic number IF statement in C programming language If statement for different choice More if else in C programming Move more statements into if and else Nested if...else statement (if...elseif....else Statement) Program to check alphabet, digit or special character using ASCII value Program to check alphabets using ASCII value Program to check positive, negative or zero using if...else Program to check uppercase or lowercase characters using library functions Program to check valid triangle using if...else and logical AND operator Program to check valid triangle using nested if - best approach Program to check vowel or consonant using ASCII value Program to check vowel or consonant using switch...case statement Program to create calculator using switch...case and functions Program to find maximum between three numbers using ladder if...else...if Program to find maximum between two numbers using if...else Program to find maximum between two numbers Program to find maximum using ladder if...else...if Program to find number of days in a month using switch...case - best approach Program to print day name of week using array constant Program to print days in a month using array Program to print days in a month using logical OR operator Simple #if Statement in C programming Simple #if/#else in C programming language Switch Case Statement in C programming Switch: char and nested if switch statement in C programming Switch with char case in C programming language Switch Case Statement with default Ternary operator inside if else Use of break statement in switch-case Use statement inside if else Use user input as the if condition Page 1 Page 2