C Programming Examples

This page contains the list of C programming examples which covers the concepts like basic c programs, programs on numbers, loop programs, functions, recursions etc.

All the C programming examples that are present in this page might contain at least three examples, which includes program using For Loop, using While Loop, Functions. In some case, Recursions.

Simple C Programming Examples

The following C programming examples are the basic and simple programs.

1. C Program to Print Hello World
2. C Program to Add Two Numbers
3. C Program for Average of Two Numbers
4. C Program to Find the Absolute Value of a Number
5. C program to find Compound Interest
6. C program to Calculate Cube of a Number
7. C Programs to check Number is Even or Odd
8. C Program to Print Even Numbers from 1 to N
9. C Program to find Largest of Two Numbers
10. C Program to find Largest of Three Numbers
11. C Program to print Multiplication Table
12. C program to find Number is Divisible by 5 and 11
13. C Programs for nCr Calculation
14. C Programs for nPr Calculation
15. C Program to print Odd Numbers from 1 to N
16. C program to calculate Power of a Number
17. C program to find Profit or Loss
18. C Programs to Print an Integer, Character, and Float Value
19. C Program to find the size of int, float, double, and char
20. Positive or Negative Number
21. Print 1 to 100 without using Loop
22. Roots of a Quadratic Equation
23. Simple Interest
24. Standard Deviation
25. Sum of Even and Odd numbers in a Given Range
26. Sum and Average of Three Numbers
27. Square of a Number
28. Square root of a Number
29. C Program to Print First 10 Even Natural Numbers
30. C Program to Print First 10 Natural Numbers
31. C Program to Print First 10 Natural Numbers in Reverse
32. C Program to Print First 10 Odd Natural Numbers
33. C Program to Read 10 Numbers and Find their Sum and Average
34. C Program to Find Sum of 10 Numbers and Skip Negative Numbers
35. C Program to Find Sum of 10 Numbers until user enters positive number
36. Sum of Even Numbers from 1 to n
37. Sum of Odd Numbers from 1 to n
39. Total, Average, and Percentage of Five Subjects
40. C Program to Multiply Two Floating Point Numbers
41. C Programs to find Quotient and Remainder
42. C example to accept User Input and Print
43. C Programs To Perform Arithmetic Operations using Functions
44. C Programs to Find the Range of Data Types
45. C program to Find the Distance Between Two Points

C Programming Examples on Numbers

The list of advanced Number programs in C Programming language with multiple examples.

1. C Programs to check the Number is Armstrong Number
2. C programs to Count Number of Digits in a Number
3. C program to Check Number is a Prime, Armstrong, or Perfect Number
4. C program to Calculate Electricity Bill
5. C Program to find Factors of a Number
6. C Program to find Factorial of a Given Number
7. C program to print First Digit of Number
8. C program to print First and Last Digit of a Number
9. C program to calculate GCD of Two Numbers
10. C program to calculate Generic Root of a Number
11. C program to find Gross Salary of an Employee
12. C program to print Last Digit of Number
13. C program to calculate LCM of Two Numbers
14. C program to find NCR Factorial of a Number
15. C program to print Natural Numbers from 1 to N
16. C program to print Natural Numbers in Reverse Order
17. C program to check Krishnamurthy Number
18. C program to check Neon Number
19. C program to check Palindrome or Not
20. C program to check Perfect Number or Not
21. C program to check Prime Number
22. C program to print Prime Numbers from 1 to 100
23. C program to calculate Product of Digits of a Number
24. C program to find Prime Factors of a Number
25. C program to Reverse a Number
26. C program to Reverse a Number using Recursive Function
27. C example to Swap Two Numbers
28. C example to find Sum of First and Last Digit of a Number
29. C example to Swap First and Last Digit of a Number
30. C example to find Sum of N Natural Numbers
31. C example to calculate Sum and Average of N Numbers
32. C program to check Strong Number
33. C programs to find Sum of Digits in a Given Number
34. C programs for Simple Calculator
35. C Programs to find the Total Notes in a Given Amount

C Programs on Calendar

1. C Programs to find the Leap Year
2. C example to find the Day Name of a Week
3. Days to Years Weeks and Days
4. Number of Days in a Month

C Programs on Conversions

The following are the list of C programs to Convert

1. C Programs to Convert Binary to Decimal
2. C Programs to Convert Binary to Octal
3. C example to Convert Centimeter to Meter and Kilometer
4. Celsius to Fahrenheit
5. Decimal to Binary Number
6. Decimal to Octal Number
7. Fahrenheit to Celsius
8. Kilometer to Meter Centimeter and Millimeter
9. Octal to Binary
10. Octal to Decimal

C Programs on Characters

Below programs are the C Programs to Check whether the Character is

C Programming Examples on String

The list of c programs on strings or character arrays.

C Programming Examples on Area

The following are the list of C programs on Area.

C programs on Volume and Surface Area

Following are the list of Volume and Surface Area C programs

C Programs on Arrays

The following are the c programming examples on Arrays

C Programs to display Patterns and Shapes

The following are the list of C programs to Print patterns and shapes

C Programming Examples on Number pattern

The following are the remaining number pattern C programming examples.