# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### ask to the user to enter number of rows for diamond dimension to print the diamond pattern,

Reverse Counting program in C Language -
C Program reverse counting is sequence of whole numbers in descending order without zero. Developing a program of counting in C programming language is easy and we shall

C Program Printing Upside Down Triangle -
Upside down triangle. A triangle with all sides equal is called "Equilateral Triangle". We shall now see how to print stars char, in equilateral triangle shape, but 'upside-down'. Equilateral

Input Number & Check it is Palindrome or -
C program input number and check number is Palindrome or not using Loop. Palindrome number is such number which when reversed is equal to the original number. 121, 12321,...

Chess for two humans C Graphic Program -
Draw vertical lines of the chess board Draw the horizontal lines of the chess. Knight's moves are not affected if some entity lies in the way. It just jumps over them. Atmost only

Create Random Linear Extensions for DAG -
"Linear extension" is another term for finding topological sort of a graph. A C++ program to print topological sorting of a DAG. Pointer to an array containing adjacency listsList. Graph

C Code Print Fibonacci Series by Recursion -
Program print 'Fibonacci Series' by recursion. "L. Fibonacci" discovered a simple numerical series called Fibonacci Series. Starting with 0 & 1, each new number in the series is simply...

Program Construct a Balanced Binary Tree -
Construct a balanced binary tree using sorted array. Given binary search tree example. The preorder traversal of binary search tree is as follows. Create a new node and a balanced...

C Code to Find & Replace any desired char -
C Program to find and replace any desired character from the input text. Function to find and replace any text. Enter a line of text below. Line will be terminated by pressing...