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. Convert a character to ASCII value
  4. Convert ASCII value to a character
  5. Compute quotient and remainder
  6. Swap two numbers without third variable
  7. Swap two numbers using third variable
  8. Swap two numbers using X-OR
  9. Fahrenheit to Centigrade conversion
  10. Centigrade to Fahrenheit conversion
  11. Simple interest
  12. Conversion between Kilograms and Grams
  13. Calculate percentage of a number
  14. Decision making

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

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

  62. Find largest element
  63. Find smallest element
  64. Sum of elements
  65. Sum and average of N numbers
  66. Display array in reverse
  67. Strings

  68. Check if a string is palindrome
  69. Change case of a string
  70. Pattern

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

  88. Display own source code
  89. Bitwise operation

  90. Check if a number is even or odd
  91. Matrix

  92. Check equality of two matrices
  93. Matrix addition
  94. Matrix subtraction
  95. Matrix multiplication
  96. Check lower triangular matrix
  97. Geometry

  98. Calculate the Area and Perimeter of a square
  99. Calculate Area, Perimeter and Diagonal of a Rectangle
  100. Calculate Area and Perimeter of a Circle
  101. Number System

  102. Decimal to Binary
  103. Binary to Decimal
  104. Searching & Sorting

  105. Linear search
  106. Binary search
  107. Games

  108. Rock paper scissors random approach
  109. Miscellaneous

  110. 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