C Programming Decision Making and Loops Examples

This page contains examples and source code on decision making in C programming (to choose a particular statement among many statements) and loops ( to perform repeated task ). To understand all the examples on this page, you should have knowledge of following topics:

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

Decision Making and Loop Examples

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