Category: C++ Programs
Posts of Category: C++ Programs
Posts of Category: C++ Programs
C Program to Print India Map
In this article I am sharing the program to print India map. If you like it, please do share it!#include <stdio.h> main() { int a, b, c; int count = 1; for (b = c = 10; a = "- FIGURE?, UMKC,X...Learn MoreC ProgramsC++ ProgramsPrint FiguresProgramming LanguagesProgram for Pascal Triangle in C and C++
Program for Pascal Triangle in C and C++ Here I have shared simple program for pascal triangle in C and C++. Basically Pascal’s triangle is a triangular array of binomial coefficients. An example for how pascal...Learn MoreC ProgramsC++ ProgramsPrint FiguresProgramming LanguagesFactorial of Large Number in C and C++
Here you will get program to find factorial of large number in C and C++. Factorial of big numbers contain so many digits. For example factorial of 100 has almost 158 digits. So there is no data type available ...Learn MoreCompetitive ProgrammingC ProgramsC++ ProgramsDevProgramming LanguagesC/C++ Program for Union of Two Arrays
Here you will get C/C++ program to find union of two arrays. For example: First array: {1, 3, 7, 9} Second array: {1, 4, 6} Union: {1, 3, 4, 7, 6, 9} C/C++ Program for Union of Two Arrays Union of Two So...Learn MoreC ProgramsC++ ProgramsArrayProgramming LanguagesProgram for Shell Sort in C and C++
Here you will get program for shell sort in C and C++. Shell short is an improved and efficient version of insertion sort. In this algorithm we sort the pair of elements that are far apart by gap h. The process...Learn MoreC ProgramsC++ ProgramsArrayProgramming LanguagesC and C++ Program to Find Inverse of a Matrix
Here you will get C and C++ program to find inverse of a matrix. We can obtain matrix inverse by following method. First calculate deteminant of matrix. Then calculate adjoint of given matrix. Adjoint can be o...Learn MoreC++ ProgramsC ProgramsArrayMatrixProgramming LanguagesC/C++ Program to Read Infinite Numbers and Arrange Them in Ascending Order
In this program we are reading infinite numbers and then arranging them in ascending order. Here infinite means, the program should read numbers until a particular number is entered to terminate the reading ...Learn MoreC ProgramsC++ ProgramsPointerBubble SortProgramming LanguagesC/C++ Program to Find Substring in String (Pattern Matching)
Here you will get C and C++ program to find substring in string. Pattern matching refers to find the position where a string pattern appears in a given string. If the required string is not present in given tex...Learn MoreC ProgramsC++ ProgramsStringProgramming LanguagesC/C++ Program to Remove Spaces From String
For example given string is “the crazy programmer”. Now we have to remove all the spaces present in the string. Before: the crazy programmer After: thecrazyprogrammer Below I have shared a program that ...Learn MoreC ProgramsC++ ProgramsStringLoopProgramming LanguagesPermutation of String in C and C++
Here you will get program for permutation of string in C and C++. Permutation means all possible arrangements of given set of numbers or characters. For a string with n characters can have total n! arrangements...Learn MoreC ProgramsC++ ProgramsStringProgramming LanguagesC/C++ Program for Fibonacci Series Using Recursion
Series 0, 1, 1, 2, 3, 5, 8, 13, 21 . . . . . . . is a Fibonacci series. In Fibonacci series, each term is the sum of the two preceding terms. The C and C++ program for Fibonacci series using ...Learn MoreC ProgramsC++ ProgramsLoopFunctionProgramming LanguagesC/C++ Program to Find GCD of Two Numbers Using Recursion
In this program we will use recursion and Euclid’s algorithm to find greatest common divisor of two numbers. The definition of Euclid’s algorithm is as follows: C Program #include<stdio.h> int g...Learn MoreC ProgramsC++ ProgramsFunctionProgramming Languages