24 C Programs and Code Examples on Decision and Loop

C Programs and Code Examples on Decision and Loop

This section contains decision and loop based C Programs and Code Examples with solutions, output and explanation. This collection of solved decision and based examples on C programming will be very useful for beginners in C programming.

List of C Programs and Code Examples on Decision and Loop covered here

The C programs covered in this section range from basic to advanced. They cover:

1. Check number is less than 10
2. Check numbers are equivalent
3. Check voting eligibility
4. Check if number is even or odd
5. Enter three angles & check if it is a triangle
6. Find total marks & percentage
7. Check for leap year
8. Check number is +ve, -ve or zero
9. Largest amongst three numbers
10. Print grade of employee
11. Print Color Name
12. Print gross salary of employee
13. Print division scored by student
14. Find greatest among 3 numbers
15. Check if student scored distinction
16. Check type of triangle
17. Check sum of digit greater than 10
18. Print single digit number in words
19. Print numbers in words
20. Read a day of week in digit
21. Perform arithmetic operations
22. Check alphabet is vowel or consonant
23. Check number is even or odd
24. Right Shift & Left Shift Operations

For whom are these C Programs and Code Examples on Decision and Loop useful?

All computer science freshers from BCA, BSc, BTech, MCA and all engineering students will find these solved C Program examples useful for their university exam, lab exam, practicals, assignments, viva questions and campus placement. You can also use these program to practice for your written test.

So, let's begin!