# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### Program to print Alphabet Pattern

C Program code check Armstrong Number -
A number is called as "Armstrong Number" if Sum of Cubes of Digits of Number is equal to the number itself. In C code, we are checking the input number is Armstrong or not. Check

Code shows how to fork system call works -
C Programming example that shows how fork system call works. Let us now print the current working directory of the child. Now we are in the parent thread. Let is check the

C Code Traverse the Tree Non-Recursively -
C language code, using iteration, searches for a given node in a tree. The tree we have used is the binary search tree. A binary search tree follows a concept of nodes whose numbers...

C++ Program Sample Implements Vector -
'Insert element' into the vector. Deleting last element of the vector. Size of the vector and Display by index. "Dislplay by iterator". Clear the vector. Enter value to be inserted. Display

C Program to find determinant of a matrix -
C program to read elements in a matrix and find determinant of the given matrix. The Determinant of a matrix is a special number that can be calculated from the elements of

Program code Find Quotient & Remainder -
User is asked to enter the Dividend & Divisor and the program then finds the quotient and remainder based on the input values and the modulus operator "%" returns the remainder

C++ Multiply Two Matrices use 2D Arrays -
C++ Code is very simple it takes input in two 2D arrays each with size of 2X2. After taking the input program "multiply two matrix" in 3 nested for loops. Size of arrays is defined use

Program code to addition of two matrices -
Before accepting the Elements Check if no of rows and columns of both matrices is equal. Accept the Elements in Matrix 1 and Matrix 2. Addition of two matrices. Print out the matrix