C Program to find out the Power of Any Number using Loop

This is a C Program to find out the power of any number using loop. Problem Description We have to create a C Program which calculates the power of any number, by taking the values of base and exponent from the user. Expected Input and Output 1. When base and exponent both are positive If … 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 Calculate the value of 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 Calculate the Value of 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 G.P 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 the Volume and Surface Area of Cuboids

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

C Program to Display Floyd’s triangle

This is a C Program to display floyd’s triangle. Problem Description This C Program displays floyd’s triangle. Problem Solution It displays floyd’s triangle as shown in the program below. Program/Source Code Here is source code of the C Program to display floyd’s triangle.The C program is successfully compiled and run on a Linux system. The … Read more

advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Youtube | Instagram | Facebook | Twitter