List of C Programs

Here is the list of all C programs available in this blog. You can find basic level programs as well as advanced level programs. All of these programs have been categorised below. Click on the buttons inside the tabbed menu to explore those categories.


  1. Hello, World! program
  2. Addition, Subtraction, Multiplication and Division
  3. Average of two numbers
  4. Convert a character to ASCII value
  5. Convert ASCII value to a character
  6. Find unit digit of a number
  7. Compute quotient and remainder
  8. Swap two numbers without third variable
  9. Swap two numbers using third variable
  10. Swap two numbers using X-OR
  11. Fahrenheit to Centigrade conversion
  12. Centigrade to Fahrenheit conversion
  13. Simple interest
  14. Conversion between Kilograms and Grams
  15. Calculate percentage of a number
  16. Decision making

  17. Check vowel or consonant
  18. Check if a character is a digit
  19. Conversion between uppercase and lowercase letter
  20. Check if a number is positive or negative
  21. Check if a number is even or odd
  22. Find largest among three numbers
  23. Check if a number is a perfect square
  24. Check leap year
  25. Simple calculator
  26. Calculate profit and loss
  27. Roots of quadratic equation
  28. Find the letter grade of a student
  29. Find the age group
  30. Calculate income tax
  31. Display month according to input number
  32. Conversion between 12-hour and 24-hour time format
  33. Loop & Recursion

  34. Print natural numbers from 1 to N
  35. Print natural numbers from 1 to N using Recursion
  36. Sum of first N natural numbers / Sum of series 1 + 2 + 3 + .. + N
  37. Print all numbers in a range
  38. Sum and average of N numbers
  39. Compound interest
  40. Display letters from A to Z
  41. Factorial of a number
  42. Power of a number
  43. Count no of digits
  44. Sum of the digits of an integer
  45. Reverse of a number
  46. Check if a number is palindrome
  47. Count palindrome between intervals
  48. Display N th fibonacci number
  49. Display fibonacci sequence
  50. Display fibonacci sequence upto N
  51. Check a number is a prime or not
  52. Display all prime numbers upto N
  53. Display First N prime numbers
  54. Display prime numbers between interval
  55. Check amstrong number
  56. Find amstrong numbers between interval
  57. Display multiplication table
  58. Check perfect number
  59. Find minimum number of currency notes to make an amount N
  60. Find the average and sum until 0 is entered
  61. Find the value of permutation and combination
  62. Find the frequency of a digit in a number
  63. Array

  64. Find largest element
  65. Find smallest element
  66. Sum of elements
  67. Sum and average of N numbers
  68. Display array in reverse
  69. Rotate an array
  70. Strings

  71. Check if a string is palindrome
  72. Change case of a string
  73. Pattern

  74. Square pattern
  75. Rectangle pattern
  76. Rhombus pattern
  77. Half diamond pattern
  78. Diamond pattern
  79. Right triangle, Half pyramid pattern
  80. Full pyramid pattern
  81. Inverted full pyramid pattern
  82. Snake number pattern
  83. Spiral pattern
  84. Hollow rectangle pattern
  85. Hollow rhombus pattern
  86. Hollow diamond pattern
  87. Hollow pyramid pattern
  88. Floyd's triangle pattern
  89. Pascal's triangle pattern
  90. File Input/Output

  91. Display own source code
  92. Bitwise operation

  93. Check if a number is even or odd
  94. Matrix

  95. Check equality of two matrices
  96. Matrix addition
  97. Matrix subtraction
  98. Matrix multiplication
  99. Check upper triangular matrix
  100. Check lower triangular matrix
  101. Trace of matrix
  102. Geometry

  103. Calculate the Area, Perimeter and Diagonal of a square
  104. Calculate Area, Perimeter and Diagonal of a Rectangle
  105. Calculate Area and Perimeter of a Circle
  106. Number System

  107. Convert Decimal to Binary
  108. Convert Binary to Decimal
  109. Searching & Sorting

  110. Linear search
  111. Binary search
  112. Games

  113. Rock paper scissors random approach
  114. Miscellaneous

  115. Multiply large numbers

Structure and Union

File Input/Output

  1. Display own source code

Searching & Sorting

  1. Linear search
  2. Binary search


  1. Multiply large numbers