# C Programming Code Examples

## C > Mathematics Code Examples

### Program to find area and circumference of circle

C Number of Occurrences of an Element in -
Code count the Number of Occurrences of an element in the linked list using recursion. This C Program uses recursive function & finds the occurrence for an element in an unsorted list.

C Program code Simple Account software -
Enter the Name of the Custumer. Enter the Acc.no of the Custumer. Enter the Balance of the Custumer. Enter the name of Customer whose rec. is to be modified. Enter the new

C Program code to Subtract two matrices -
C language read elements in two matrices and find the difference of two matrices. Subtract two matrices in C. Elements of two matrices can only be subtracted if and only...

C++ Random Numbers the Middle Square -
This C++ Program generate random numbers using Middle Square method. In practice it is not a good method, since its period is usually very short & it has some severe 'weaknesses',

Encoding a Message Matrix Multiplication -
This C++ Program perform 'encoding matrix' using a hidden-key. "Encoding" is performed using "matrix multiplication" between given matrix and 'key matrix'. Enter the number of

Performs Binary Search on a Sorted Array -
Returns a pointer to the first member that matches *key. A null pointer is returned if not found. The array must be sorted in ascending order. The number of elements in the array is

C Code Find Armstrong Numbers in Range -
Logic to find all Armstrong number between 1 to n. Input Upper Limit to print Armstrong number from user. Store it in some variable say end. Run a loop from 1 to end, increment

C ++ Access Functions and Encapsulation -
In C++ language, Encapsulation is achieved using access specifiers. In encapsulation we make all member variables private, provide public "functions" which allow user to work