Control Statement Examples

if-else programs

Program for Simple if-else condition

Program for if-else if condition

Program for Multiple if-else if condition

Program for Nested if-else-else if

Program to check Even or Odd

switch() case programs

Program for simple free flowing Switch case

Program for simple Switch case through loop

Program for Nested Switch Statements

Program for multiple Nested Switch Statements

for() loop programs

Program to print simple values through for() loop

Program to print values through for() loop in if() condition

Program to print Up Pyramid through for() loop

Program to print Down Pyramid through for() loop

Program to print Up-Down Pyramid through for() loop

Program to print Up Pyramid of Numbers through for() loop

Program to print Down Pyramid of Numbers through for() loop

Program to print Up-Down Inside Pyramid of Numbers through for() loop

Program to print triangle of Numbers

while() loop Example

Program for simple while() loop

Program to print tables though nested while() loop

do while loop Example

Program to print simple numbers through do while

Program to print Triangle through do while

Enhance for() loop

Program to print simple array values

Program to print array values with Scanner