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.


    Basic

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

  64. Square pattern
  65. Rectangle pattern
  66. Rhombus pattern
  67. Half diamond pattern
  68. Diamond pattern
  69. Right triangle, Half pyramid pattern
  70. Full pyramid pattern
  71. Inverted full pyramid pattern
  72. Snake number pattern
  73. Spiral pattern
  74. Hollow rectangle pattern
  75. Hollow rhombus pattern
  76. Hollow diamond pattern
  77. Hollow pyramid pattern
  78. Floyd's triangle pattern
  79. Pascal's triangle pattern
  80. Array

  81. Find largest element in array
  82. Find smallest element in array
  83. Display array in reverse
  84. Sum and average of N numbers
  85. Rotate an array
  86. Strings

  87. Check if a string is palindrome
  88. Bitwise operation

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

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

  99. Calculate the Area, Perimeter and Diagonal of a square
  100. Calculate Area, Perimeter and Diagonal of a Rectangle
  101. Calculate Diameter, Area and Perimeter of a Circle
  102. Find Area, Perimeter and Side of a Rhombus
  103. Calculate Surface Area and Volume of a Sphere
  104. Find the Area and Perimeter of an Equilateral Triangle
  105. Find the Area and Perimeter of an Isosceles Triangle
  106. Find Area and Perimeter of Scalene Triangle
  107. Find Area and Perimeter of a Parallelogram
  108. Find Area and Perimeter of a Trapezoid
  109. Find Area of a Circular Ring
  110. Find Length and Area of Arc in Circular Sector
  111. Pythagorean Theorem
  112. Find Surface Area and Volume of a Cube
  113. Find Surface Area and Volume of a Cylinder
  114. Find Surface Area and Volume of a Cone
  115. Find Surface Area and Volume of a Rectangular Prism
  116. Euclidean distance
  117. Manhattan distance
  118. Check if three points form a triangle
  119. Number System

  120. Convert Decimal to Binary
  121. Convert Binary to Decimal
  122. Games

  123. Rock paper scissors random approach
  124. Miscellaneous

  125. Multiply large numbers

Case

Function & Pointer

Structure and Union

File Input/Output

Miscellaneous

  1. Multiply large numbers