C Programming Code Examples C > Mathematics Code Examples C Program to find the Sum of First n Natural numbers Program to Find the Sum of First N Natural Numbers C Program to Find the Sum of G.P Series C Program to Find the Sum of H.P Series C Program to find the Sum of Series 1 + 1/2 + 1/3 + 1/4 + ... + 1/N C Program to find the sum of series 1^2 + 2^2 + .... + n^2. C Program to Find the Sum of two Binary Numbers Program to Find the volume and surface area of cone Program to Find the Volume and Surface Area of Cuboids Program to Find the Volume and Surface Area of cylinder C Program to Find Volume and Surface Area of Sphere C Program to Generate Fibonacci Series C Program to generate the Fibonacci Series starting from any two numbers C Program to Implement Calender Program to display Day of the month Program to Multiply given Number by 4 using Bitwise Operators Program to Print Armstrong Number from 1 to 1000 C Program To Print First 10 Natural Numbers Program to Print the Factorial of a given Number Read a Coordinate Point in a XY Coordinate System and Determine its Quadrant read the values of x, y and z and print the results expressions in one line. how to reverse a given number C Program to Reverse a Given Number Program to Reverse a Number & Check if it is a Palindrome C Program to Simulate a Simple Calculator Program to Solve Second Order Quadratic Equation C Program to Swap the Contents of two Numbers using Bitwise XOR Operation Calculate arctangent, 2 parameters: how to use atan2 Calculate logarithm base 10: how to use log10 Calculation: divide, product and PI Check Whether Given Number is Palindrome or Not Check Whether Number is Prime or not compute the area of a triangle, given its width and height Computes the accuracy of the floating point numbers in storage and calculations Computes the area of three triangles div: returns the quotient and the remainder in a structure of type div_t Divide the first number by the second Double calculation: square Check Armstrong Number of three digits Display Prime Numbers Between two Intervals Check Armstrong Number of n digits LCM Calculation by Finding GCD Power Using pow() Function Page 1 Page 2 Page 3 Page 4