# C++ Programming Code Examples

## C++ > Mathematics Code Examples

Page 1 Page 2 Page 3 Page 4 Page 5 Page 6

Page 1 Page 2 Page 3 Page 4 Page 5 Page 6

Accept Two Integers and Check if They are

Take the two integers as input and store it in the variables x & y respectively. Using if, else statements check if x is equal to y. If they are equal, then print the output as "x and y are...

Code Find the Biggest Number in an Array

C Program to find the 'Biggest Number' in an array of numbers using recursion. C Program example printing the "Largest Number" in an unsorted array of elements 'Using Recursion'.

C Find Sum of N Numbers using Recursion

C Program using recursion displays the first N 'natural number' on the terminal. User enters the Nth number as the input, C program then displays integral number starting from 1 up to

Program to Find Inverse of a Graph Matrix

C++ code displays the Gauss Jordan method of computing inverse of a matrix. it proceeds with row by row "reduction of matrix" to unit matrix column-wise. First enter the order of

C Programming example code to find an input substring in an input main string. The given sub-string is present in the main string. The given sub-string is not present in the...

Generate All Subsets of a Given Set in the

Print all combination of a given length from the given array. Return if the currLen is more than the "required length". If currLen is equal to required length then "Print the sequence".

C Convert Binary to Octal Number System

Program input binary number and convert to octal number system. To make things simple and sound, I have divided the logic in 2 easy steps. Group all binary bits to 3 digits starting

C Program to Find Sum of Array Elements

Read elements in an array and find the sum of all elements of the array. C code find sum of elements of the array. Add elements of an array using for loop in C programming. Logic