# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### Pascal's triangle is a triangular array of the binomial coefficients.

C Codes Surface Area & Volume of a Cube -
The formula used to find the surface area and volume of the cube is surface_area = 6 * (a*a) and volume = a*a*a. Library Function is used in header file to compute Math Functions. We

C Programming Comparing Three Integers -
Compare three integer variables is one of the simplest c program you can write at ease. In this program, you can either take input from user using scanf() function or statically define

Finding the Edge Connectivity of a Graph -
C++ Program to find edge connectivity of a graph. An edge in an undirected connected graph is a bridge if removing it disconnects the graph. For a "disconnected undirected"

C Program Code Finds Area of a Rectangle -
Input length and width of a rectangle and find area of the given rectangle. How to calculate area of a rectangle in C programming. Input length and width of rectangle. Store it in two

Program Print several types of Alphabets -
Print phonetic alphabet. Print lower case greek alphabet. Print lower case hebrew alphabet. Print the lower case phoenician alphabet. Print lower case arab alphabet.

Function strncpy Copies First n Characters -
If 'Length of str2' > n then it just copies first n characters of str2 into str1. If Length of str2 < n then it 'copies' all the characters of str2 into str1 & appends several 'terminator' chars('\0')

Reversing Position of all Digits of Number -
For example reverse of 849 is 948. This code is write using for loop, 'Modulus Operator', if condition statement. User enter any number. 'Receive integer' value from user. Then check

Code Perform Scalar matrix multiplication -
C program to read elements in a matrix and perform scalar multiplication of matrix. C program for scalar multiplication of matrix. How to perform scalar matrix multiplication