# C++ Programming Code Examples

## C++ > Mathematics Code Examples

### Program to Check Whether a Number is Palindrome or Not

Find ones complement of a binary number -
C program to input binary number from user and find ones complement of binary number using loop. What is Ones complement? Ones complement of a binary number is defined as

Program Find GCD (HCF) of Two Numbers -
Recursive function in C language to find GCD (HCF) of two numbers. Find GCD ( Greatest Common Divisor ) or HCF ( Highest Common Factor ) of two numbers using recursion in C

C Code Merge & Sort Elements of 2 Arrays -
We have to sort only when left<right because when left=right it is anyhow sorted. Sort the left part. Sort the right part. Merge the two sorted parts. Merge functions merges the...

Evaluates the Value of Any Polynomial of -
Give the degree of the polynomiala. Give the value of the coefficients. Give the value of the coefficients. Give the values of the coefficient of polynomialb. Give value to be substituted

C++ Code to Calculate Standard Deviation -
Program calculates the standard deviation of 10 data using arrays. This program calculates the 'standard deviation' of a individual series using arrays. calculate "Standard Deviation",

Simple C++ Codings for Virtual Base Class -
Declare & Define the Functions getnumber() and putnumber(). And declare and define the function 'getmarks()' and 'putmarks()'. Create the derived class sports virtually derived from

Binary Search Algorithm & Specific Search -
C++ Program to find a search sequence using Binary search. Implement the "binary search" to find the first value of search sequence. It is there, compare remaining item 'Sequentially'

Sorting Elements in Lexicographical Order -
C Language program code 'Sort Elements' in lexicographical order (dictionary order). This program takes 10 words(10 strings) from the user and sorts them in lexicographical order.