C Program to Find GCD and LCM of Two Numbers using Euclidean Algorithm

This is a C Program to find GCD and LCM of given two numbers. GCD is calculated using Euclidean Algorithm. Here is source code of the C Program to Find the GCD and LCM of n Numbers. The C program is successfully compiled and run on a Linux system. The program output is also shown … Read more

advertisement

C Program to Compute First N Fibonacci Numbers using Command Line Arguments

This C Program computes first N fibonacci numbers using command line arguments. Here is source code of the C Program to compute first N fibonacci numbers using command line arguments. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Compute First … Read more

advertisement

C Program to Generate Fibonacci Series using Command Line Argument

This is a C program to generate fibonacci series of n numbers using command-line argument. Problem Description This C Program generates fibonacci series of n numbers using command-line argument. Problem Solution It displays fibonacci series of n numbers using command-line argument as shown in the program below. Program/Source Code Here is source code of the … Read more

advertisement

C Program to Find nCr

This is a C Program to calculate the value of nCr. Problem Description This C Program Calculates the value of nCr. Problem Solution The algorithm used in this program is nCr = n! /((n-r)!r!). Here we need to find all the possible combination of the value n and r. A combination is one or more … Read more

advertisement

C Program to Find nPr

This is a C Program to calculate the value of nPr. Problem Description This C Program calculates the value of nPr. Problem Solution Here we need to find all possible rearrangement of the element i.e all the possible permutation value. A permutation is a re-arrangement of elements of a set. Any duplications of the collected … Read more

advertisement

C program to Find the Sum of Geometric Progression Series

This is a C Program to find the sum of G.P series. Problem Description This C Program calculates the sum of G.P series. Problem Solution This program is used to find the sum of the geometric progression series. Here G.P stands for geometric progression. A geometric progression, or GP, is a sequence where each new … Read more

advertisement

C Program to Find Area of a Right Angled Triangle

This is a C Program to find area of a right angled triangle. Problem Description This C Program calculates the area of a right angled triangle. Problem Solution The formula used in this program are Area = (1/2) * height * width. Program/Source Code Here is source code of the C Program to Find the … Read more

advertisement

C Program to Find Volume and Surface Area of Cuboid

This is a C Program to find the volume and surface area of cuboids. Problem Description This C Program calculates the volume and surface area of cuboids. Problem Solution The formula used in this program are surfacerea= 2(w * l + l * h + h * w) where w is width, l is length … Read more

advertisement

C Program to Find the Perimeter of a Circle, Rectangle and Triangle

This is a C Program to find the perimeter of a circle, rectangle and triangle. Problem Description This C Program calculates the perimeter of a circle, rectangle and triangle. Problem Solution This program is used to find the perimeter of a circle, rectangle and triangle. The formula used in this program are perimeter of rectangle: … Read more

advertisement

C Program to Find Area of Trapezium

This is a C Program to find area of trapezium. Problem Description This C Program calculates the area of trapezium. Problem Solution The formula used in this program are Area = (1/2) * (a + b) * h where a and b are the 2 bases of trapezium & h is the height. Program/Source Code … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.