C Programming Decision Making and Loops Examples

You will find necessary examples to create programs containing loops and decision making statements in this article.
C Decision making and loops examples

To understand examples on this page, you should have the knowledge of following topics:

  1. if...else Statement
  2. for Loop
  3. while Loop
  4. break and Continue Statement
  5. switch...case

C Control Flow Examples

Check Whether a Number is Even or Odd
Check Whether a Character is Vowel or consonant
Find the Largest Number Among Three Numbers Entered by User
Find all Roots of a Quadratic equation
Check Whether the Entered Year is Leap Year or not
Check Whether a Number is Positive or Negative or Zero.
Checker Whether a Character is an Alphabet or not
Find Sum of Natural Numbers
Find Factorial of a Number
Generate Multiplication Table
Display Fibonacci Series
Find HCF of two Numbers
Find LCM of two numbers entered by user
Count Number of Digits of an Integer
Reverse a Number
Calculate the Power of a Number
Check Whether a Number is Palindrome or Not
Check Whether an Integer is Prime or Not
Display Prime Numbers Between Two Intervals
Check Armstrong Number
Display Armstrong Number Between Two Intervals
Display Factors of a Number
Print Pyramids and Triangles in C programming using Loops
Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch...case