Happy Codings - Programming Code Examples

C Programming Code Examples

C > Mathematics Code Examples

Program to Fibonacci Series. Fibonacci Series generates subsequent number by adding two previous numbers and Fibonacci Series starts from 2 numbers F0 & F1. The initial values of
Find the sum of natural numbers using While Loop. When you use while loop, you have to initialize the loop counter variable before the Loop & Increment or Decrement it inside the
Permutation refers number of ways in which set members can be Arranged or Ordered in some fashion. The 'Formula of Permutation' of arranging k elements out of n elements is
Any whole number which is Greater than 1 & has only two factors that is 1 and the number itself, is called a "Prime Number". Other than these two number it has No Positive Divisor.
C Programming code gives all details of a Triangle given the lengths of its sides. Enter the lengths of the three sides of the triangle. S is the semiperimeter of the triangle. D is...
Given the coordinates of the vertices of a convex polygon, calculate its area and perimeter. Subdivide it into triangles and calculate the area of each triangle with the
This C program should give an insight of how to parse (read) array. We shall use a loop and Sum up all Values of the array. Then we shall divide the sum with the number of elements
Percent means per cent (hundreds), a ratio of the parts out of 100. The symbol of percent is %. We count 'Percentage of Marks Obtained', return on investment and Percentage can go
Program to Find HCF In C language. An H.C.F or Highest Common Factor, largest common factor of two or more values. For example 12 > 1, 2, 3, 4, 6, 12 and 18 > 1, 2, 4, 8, 18. HCF=4
C Program to Find LCM In C language. L.C.M. or Least Common Multiple of 2 values, is the smallest positive value which the multiple of both values. For example multiples of 3 and 4
In this program, we are doing the same thing that we have done in the above program, but here we're using functions in order to find the Quotient & Remainder. We have created two
Check for Armstrong Number in C language. Armstrong Number: If sum of cubes of digits of number equal to same given number then the number is called as Armstrong Number.
C program coding to calculate area, volume, perimeter of a particular geometric shape. Square, rectangle, circle, triangle, rhombus, parallelogram, trapezium, quadrilateral,...

Page 1 Page 2 Page 3 Page 4