C Program to Display Patterns
The main thing required in creating a pattern in C is understanding how to use nested loops properly and knowing how the characters in pattern changes. Here are a few examples…
C Program to Display Prime Numbers Between Two Numbers
A prime number is the number which can be exactly divided by only 1 and the number itself. For example, 5 can only be exactly divided by 1 and the number itself,…
C Program to Display Sum of Some Series
There are different types of series in mathematics which can be solved easily in C programming. This section deals with finding sum of following types of series in C program.
C Program to Check Whether a Number is Prime or Composite
A prime number is the number which can be exactly divided by only 1 and the number itself. For example, 11 can only be exactly divided by 1 and the number itself,…
C Program to Find Factorial of a Number
A factorial of a number can be defined as the multiplication of the number itself and its descending natural numbers. Factorial is denoted by ‘!’ symbol. e.g. the factorial of 5 is…
C Program to Find Largest and Smallest Number among N Numbers
C program to find the largest and smallest number among N numbers entered by the user is shown below
C Program to Print the Fibonacci series
Fibonacci series is the series of numbers which is found by adding the two numbers before it. For example: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 … C program…
C Program to Check Prime Number
Prime numbers are those natural numbers which has exactly two factors : 1 and itself. If a number has factors more than two, they are composite. 1 and 0 are neither prime…
C Program to Calculate Power of a Number
The power of a number can be defined as how many times the number is multiplied with itself. For example: 93= 9 X 9 X 9 = 729 25= 2 X 2…
C Program to Find the Sum of First N Natural Numbers
Natural numbers are the whole numbers starting from 1. They are 1, 2, 3, 4, ….. and so on. This program asks the user to input the number of terms whose sum…
C Program to Display the Day Name According To a Number Entered
This C program displays the name of the day by asking the user to input a number. For example, if the user enters 1 then “SUNDAY” is displayed, if the user enters…
C Program to Enter an Operator and Two Operands and Perform the Operation
In this program, the user is asked to enter any one of the operators +, -, *, / and also two operands. The operation chosen by the user is carried out on…
C Program to Find Largest Among 3 Numbers
To find the largest among 3 numbers entered by the user in C programming, nested if can be used which is implemented in following program:
C Program to Check Whether a Year is Leap Year or Not
A year that has 366 days is called a leap year. A year can be checked whether a year is leap year or not by dividing the year by 4, 100 and…
C Program to Check Uppercase and Lowercase Character
A character is said to be in uppercase if it is in capital letter and it is said to be in lowercase if it is in small letter. C program to check…
C Program to Check Vowel or Consonant
The characters A, E, I, O, U are known as vowels. The remaining 21 characters of English alphabets are known as consonants.
C Program to Check If Number is Armstrong Number and Find All Armstrong Numbers In Range
Armstrong number is the number whose sum of cube of individual digits is the number itself. For example: 153, 407 etc. 153 = 13 + 53 + 33 // Armstrong Number Example:…
C Program to Find the Roots of Quadratic Equation
A quadratic equation is an equation of the form ax2 + bx + c = 0 where a, b and c are constants. And the formula to calculate the roots of the…
C Program to Check Whether a Number is Palindrome or Not
A palindrome number is a number whose reverse is the original number. Some examples of palindrome number are: 121, 12321, 515, etc. C program to check whether the number is palindrome…
C Program to Check Whether a Number is Even or Odd
An integer that can be exactly divided by 2 is known as an even number. An integer that cannot be exactly divided by 2 is known as an odd number. In other…