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

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

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

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

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

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

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

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

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

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, 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