0% found this document useful (0 votes)
96 views

C Programming - Decision Making and Loops Examples

This document provides examples of decision making and loops in C programming. It includes source code examples for programs that use if/else statements, for loops, while loops, break and continue statements and switch/case to check conditions, find largest/smallest values, calculate sums and factors, generate sequences, and perform other repetitive tasks. A total of 30 different C programming examples are listed covering topics like checking even/odd, vowels/consonants, leap years, positives/negatives, palindromes, primes and more.

Uploaded by

R-jayVenturillo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views

C Programming - Decision Making and Loops Examples

This document provides examples of decision making and loops in C programming. It includes source code examples for programs that use if/else statements, for loops, while loops, break and continue statements and switch/case to check conditions, find largest/smallest values, calculate sums and factors, generate sequences, and perform other repetitive tasks. A total of 30 different C programming examples are listed covering topics like checking even/odd, vowels/consonants, leap years, positives/negatives, palindromes, primes and more.

Uploaded by

R-jayVenturillo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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 Programming Examples and Source Code


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

You might also like