C Program to Find the Number of Integers Divisible by 5

This is a C Program which calculates the number of integers divisible by 5 in the given range. Problem Description 1. This program takes the range as input and finds the number of integers divisible by 5 in the given range. 2. Also finds the sum of all integers that are divisible by 5 in … 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 Reverse a Number and Check if it is a Palindrome

This is a C Program which reverses a number & checks if it is a palindrome or not. Problem Description This C program accepts an integer, reverse it and also checks if it is a palindrome or not. Problem Solution 1. Take the number which you have to reverse as the input. 2. Obtain its … Read more

advertisement

C program to Check Whether a Number is Positive or Negative

This is a C program to check whether a given integer is positive or negative. Problem Description The program takes the given integer and checks whether the integer is positive or negative. Problem Solution 1. Take the integer which you want to check as input. 2. Check if it is greater or lesser than zero … Read more

advertisement

C Program to Find Sum of All Elements in an Array

Fundamentally, an array is a data structure containing a collection of values or variables. The simplest type of array is a linear array or one-dimensional array. An array can be defined in C with the following syntax: int Arr[5] = {10, 20, 30, 40, 50}; /* here 10,20,30,40,50 are the elements at indices 0,1,2,3,4 respectively … 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

C Program to Find the Sum of Even and Odd Numbers

This is a C program to find the sum of odd and even numbers from 1 to N. Problem Description The program takes the number N and finds the sum of odd and even numbers from 1 to N. Problem Solution 1. Take the number N upto which we have to find the sum as … 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
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.