 # C Programming Code Examples

## C > Mathematics Code Examples

### C Program to find prime numbers in a given range

C++ program to find LCM of two numbers - To find the LCM of 2 or more numbers, make "Multiple of Numbers" and Choose Common multiple. Then take lowest common multiple, lowest common multiple is 'LCM' of numbers.

C Armstrong numbers between an interval - Declare function to print Armstrong numbers in given range. Lets give a meaningful name to function. Say "printArmstrong()" function prints all Armstrong numbers in given range.

C Standard Form of a Quadratic Equation - The determinant tells the nature of the roots. b*b-4ac: Determinant of quadratic equation. If determinant is greater than 0, the roots are real and different. If determinant is equal to 0

Swap Array Element and Reverse an Array - To reverse an array in C++ programming, you have to ask to the user to enter the array size and array elements. Now start swapping the array elements. Make a variable say temp of

Implementing Circular Doubly Linked List - 'Memory allocated' for node dynamically and inserts element at beginning. Inserts elemnet at last. Inserts element at position and delete node at particular position. Update value of a

Program to Accept Paragraph using scanf - Here scanf will accept characters entered with spaces. It also accepts the Words, new line characters. Represent that all characters are accepted except tab(t), whenever t will

Code Finds Area & Circumference of Circle - C Program code to find area & circumference of circle. In this program we have to calculate the area and circumference of the circle. Two formulas for finding Circumference and Area

C Program setlocale Set Local Information - C programming code to set local information. Refers to all localization categories. Affects the operation of the strcoll() function. Alters the way the character functions work and...