# C++ Programming Code Examples

## C++ > Mathematics Code Examples

### Find The Perfect Number In C++

Program to Pick and Print a random value -
Picks a random value withing range low-high. Value returned seeds the rand() function. Print version information and exit. First seed the random function. Add line, to the array...

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",

Generate a Graph for Given Fixed Degree -
This algorithm generates a undirected graph for the given "Degree Sequence". It does not include self-edge and multiple edges. So this algorithm 'takes the input' of the number of

Largest Rectangular Area in a Histogram -
Get minimum of two numbers in hist[]. Get the 'middle index' from corner indexes. Get the index of minimum value in a given range of indexes. Then returns 'index' of minimum

C++ Converting Fahrenheit to Centigrade -
To convert temperature from "Fahrenheit" to centigrade in C++, enter the "temperature" in Fahrenheit to convert it to centigrade to print equivalent temperature value in "centigrade"

C Programming Selection sort [linked list] -
Load some random values into the linked list. Adds a node at the end of a linked list. If the list is empty, create first node. Go to last node. Add node at the end. Assign data to...

C++ Class Program to Find Prime Number -
A 'prime number' is a natural number greater than 1 that has no positive divisors other than 1 and itself. The C++ Programming Language allows you to separate program-specific data

C Program to Count Words, Digits, Vowels -
Program code count number of words, digits, vowels using pointers. Program code Finding number of words, blank spaces, digits, special symbols, vowels using pointers. Counting the