# 37 C Programs and Code Examples on Loops

## C Programs and Code Examples on Loops

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

## List of C Programs and Code Examples on Loops covered here

The C programs covered in this section range from basic to advanced. They include programs on nested loops like for, do, while, do....while etc. Here's a list of programs covered in this section:

1. Print 1 to 15 numbers
2. Print 10 to 1 numbers
3. Sum of first n even numbers
4. Print factorial of a number
5. Number perfectly dividing given number
6. Square roots of 1 to 9 numbers
7. Numbers not divisible by 2, 3, 5
8. Harmonic sequence & its sum
9. Arithmetic progression & its sum
10. Exponential series & its sum
11. Sum of Expanded Geometric Sequence
12. Print right angle triangle pattern
13. Print number pyramid pattern
14. Print mixed right angle triangle
15. Print inverted right angle triangle
16. Print alphabet right angle triangle
17. Print numbered inverted right angle triangle
18. Print alphabet triangle pattern
19. Print number triangle pattern
20. Print star pyramid pattern
21. Sum of first & last digit of number
22. Sum of all digits of number
23. Print reverse of a number
24. Armstrong number
25. Calculate sum of Fibonacci series
26. Calculate H.C.F using while loop
27. Check number is prime or not
28. Print series skipping given numbers
29. Add even & odd numbers
30. Print total marks of student
31. Sum of all +ve & -ve numbers
32. Print odd number right angle triangle
33. Print alphabetic right angle triangle
34. Check if number is palindrome
35. Display each digit in words
36. Print numeric inverted right angle triangle
37. Count zero, odd & even digits

## For whom are these C Programs and Code Examples on Loops 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.

Ok, let's get started!