C Program to Find Simple Interest

Problem Description Write a Simple Interest Program in C using the SI formula. What is Simple Interest in C? Simple Interest is the amount of money that a borrower pays to a lender as a percentage of the principal amount borrowed. Common terms in the calculation of Simple interest: Principal: The amount of money borrowed. … Read more

advertisement

C Program to Calculate the Value of sin(x)

This is a C Program to calculate the value of sin(x). Problem Description This C Program Calculates the Value of sin(x). Problem Solution It’s a non-differentiable function. Start at zero, then goes up to 1, then back down to 0. But then, instead of going negative, it will just “reflect” about the x-axis. The derivative … Read more

advertisement

C Program to Find Mean, Variance and Standard Deviation

This is a C Program to calculate the mean, variance & standard deviation. Problem Description This C Program calculates the mean, variance & standard deviation. Problem Solution The formula which is used in this program is mean = average of the numbers. variance = (summation( ( Xi – average of numbers) * ( Xi – … Read more

advertisement

C Program to Calculate the Value of cos(x)

This is a C Program to calculate the value of cos(x). Problem Description This C Program calculates the value of cos(x). Problem Solution Take input from the user and calculates cos(x) value as shown in the program below. Program/Source Code Here is source code of the C program to calculate the value of cos(x). The … Read more

advertisement

Factorial Program in C

What is Factorial of a Number? In mathematics, a factorial of a positive integer ‘n’ is denoted by ‘n!’ and is calculated by multiplying all positive integers from 1 to ‘n.’ In simpler terms, it’s the product of ‘n’ and all the positive integers smaller than ‘n.’ For example: Factorial of 3 is 3! = … Read more

advertisement

Fibonacci Series Program in C

What is Fibonacci Series in C? Fibonacci series are the numbers in the sequence 0, 1, 1, 2, 3, 5, 8, 13, 21….. The series in the Fibonacci sequence is equal to the sum of the previous two terms. The Fibonacci sequence’s first two terms are 0 and 1 respectively. Mathematically, we can denote it … Read more

advertisement

C Program to Find Volume and Surface Area of Cylinder

This is a C Program to find the volume and surface area of cylinder. Problem Description This C Program calculates volume and surface area of cylinder. Problem Solution The formula used in this program Surface_area = 2 * Pi * r * (r + h), Volume = Pi * r * r * h where … Read more

advertisement

C Program to Find the Area of a Triangle

The area of ​​a triangle is defined as the total area bounded by the three sides of a given triangle. Area of a Triangle Formula: If the base and height are given, the area of the triangle is determined using the formula A = If all sides are specified, the area of the triangle can … Read more

advertisement

C Program to Evaluate the Given Polynomial Equation

This is a C Program to evaluate the given polynomial equation. Problem Description This C Program evaluates the given polynomial equation. Problem Solution The polynomial equation formula is P(x)=AnXn + An-1Xn-1 + An-2Xn-2+… +A1X + A0. Program/Source Code Here is source code of the C program to evaluate the given polynomial equation. The C program … Read more

advertisement

C Program to Find Prime Numbers in a Given Range

This is a C program to find prime numbers in a given range. Problem Description The program takes the range and finds all the prime numbers between the range and also prints the number of prime numbers. Problem Solution 1. Take the range of numbers between which you have to find the prime numbers as … 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.