C Program to Print Floyd’s Triangle

Floyds Triangle in C is a right-angled triangular array of natural numbers. It is defined by filling the rows of the triangle with consecutive numbers, starting with a 1 in the top left corner: 1. Number of rows of Floyd’s triangle to print is entered by the user. For loop is used to print the … Read more

advertisement

C Program to Find Sum of Series 1^3 + 2^3 + 3^3 + … + n^3

This C Program calculates the Sum of Series 1^3 + 2^3 + 3^3 + … + n^3. Sum of the series 1^3 + 2^3 + 3^3 + … + n^3 = (n(n + 1) / 2)2 Here is source code of the C Program to Find the Sum of Series 1^3 + 2^3 + 3^3 … Read more

advertisement

C Program to Find Product of Two Numbers using Recursion

This is a C program to find product of 2 numbers using recursion. Problem Description This C program finds the product of 2 numbers using recursion. Problem Solution This C program using recursion, finds the product of 2 numbers without using the multiplication operator. Program/Source Code Here is the source code of the C program … Read more

advertisement

C Program to Find Sum of the Series 1/1! + 2/2! + 3/3! + ……1/N!

This is a C Program to find sum of the series 1/1! + 2/2! + 3/3! + ……1/N!. Problem Description This C Program calculates the Sum of Series 1/1! + 2/2! + 3/3! + ……1/N!. Problem Solution Take input from the user and calculates the series as shown in the program below. Program/Source Code Here … Read more

advertisement

C Program to Find HCF of Two Numbers without Recursion

The following C program using iteration finds the HCF of two entered integers. The HCF stands for Highest Common Factor. Here is the source code of the C program to find the HCF of two entered integers. The C program is successfully compiled and run on a Linux system. The program output is also shown … Read more

advertisement

C Program to Find Volume and Surface Area of Sphere

This is a C Program to find volume and surface area of sphere. Problem Description This C Program calculates the volume and surface area of sphere. Problem Solution The formula used in this program are Surface_area = 4 * Pi * r2, Volume = 4/3 * Pi * r3 where r is the radius of … Read more

advertisement

C Program to Find Product of Two Numbers without Recursion

This is a C program to find product of 2 numbers without using recursion. Problem Description This C Program Finds the Product of 2 Numbers without using Recursion. Problem Solution This C Program using iteration, finds the product of 2 numbers without using the multiplication operator. Program/Source Code Here is the source code of the … Read more

advertisement

C Program to Find HCF of Two Numbers

Problem Description Write a Program to Find the HCF of two numbers in C. HCF (Highest Common Factor) HCF stands for Highest Common Factor. HCF of two numbers is the largest positive integer that completely divides both the given numbers. Example: HCF(10,15) = 15, HCF(12,15) = 3. Problem Solution 1. Take two numbers as input. … Read more

advertisement

Sum of Natural Numbers using Recursion in C

This is a C program to find sum of first N numbers using recursion. Problem Description The following C program using recursion displays the first N natural number on the terminal. Problem Solution The user enters the Nth number as the input, the program then calculates the sum of first N numbers using recursion and … Read more

advertisement

C program to Find the Sum of Arithmetic Progression Series

This is a C Program to find the sum of A.P series. Problem Description This C Program calculates the sum of A.P series. Problem Solution This program is used to find the sum of the arithmetic progression series. Here A.P stands for arithmetic progression. A sequence of terms each of which, after the first, is … 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.