# C Programming Code Examples

## C > Mathematics Code Examples

### Program to calculate Area of a Polygon

Perform Unique Factorization of Numbers -
Program finds the Unique paritions of a given integer such that addition of a partition result an integer. A positive integer n, "generate" all possible unique ways to represent n as sum of

Check the Number is Prime or Not in C++ -
To check the number is a "prime number" or not a prime number in C++, enter a number and 'start checking' for prime number. If the number is divisible by 2 to one less than that

C Code strlen Return the Length of Strings -
C programming string function strlen returns the "length of the string". Program code print the Length of the string. It returns the length of the string without including 'end character'

C++ Sample Codes Implement Merge Sort -
Merge-Sort is based on an algorithmic design pattern called Divide & Conquer. It forms tree structure. The height of the tree will be log(n) And we merge n element at every level of the

Reversing Letters in Each Word of a String -
In C program, we are going to accept a string. Program will check for word inside string and if word founds then program will reverse that word. Similarly it'll Reverse out all the Words.

Find Whether a given year is Leap Year or -
Takes a year as input and finds whether a year is leap year or not. Take a year as input. Check whether a given year is divisible by 400. Check whether a given year is divisible

C Finds Maximum Between Two Numbers -
Finding maximum in general is comparison of two numbers. In C language we compare two quantities using relational operator. We using either > or < operator to compare 2 numbers

C Program Code Concatenate Two Strings -
C programming code concatenate 2 strings in single string. Concatenation of 'two strings' is the process of Joining them together to form a new string. Concatenation appends second