 # C++ Programming Code Examples

## C++ > Beginners Lab Assignments Code Examples

### Banking Project

Addition of Two Matrix in C++ Language - To achieve Addition of two matrix we need 2 "Dimensional Array" and add their elements with each other, print result on screen. Enter elements of firts matrix. Enter elements of 2.

C Codes Calculates Prints the Value of nPr - In the following c program we are calculating the value of nPr based on the given values of n and r. nPr can also be represented as P(n,r). The formula of P(n, r) is: n! / (n - r)!. P(5, 2)=5!

Code Find the Biggest Number in an Array - C Program to find the biggest number in an array of numbers using recursion. Program prints the largest number in an unsorted array of elements using recursion. Array is...

C++ Detecting a Keypress and ASCII Code - Program which detects a key pressed and its 'ASCII' value with out pressing enter key and using cin>> on press Esc key program should exit. When press a key its ASCII value should

Find Sum of Opposite Diagonal Elements - C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user

Implement Slicker Algorithm that Avoids - Program to find the "Area of Ploygon" using "Slicker Algorithm". algorithm assumes the usual mathematical convention that positive y points upwards. Enter the number of points

Read a String & Find The Sum of All Digits - Program takes a String containing both digits and alphabet as input and finds the sum of all digits in the string. Take the string containing both 'digits and alphabet' as input and store it

C++ Program Merge Sort using Linked list - Split the Data into two equal half until we get at most one element in both half. Merge Both into one making sure the resulting 'Sequence' is sorted. Then 'recursively' split them, merge