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 to…

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

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.

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

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 the largest and smallest number among N numbers entered by the user is shown below

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…

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…

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…

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…

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…

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…

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:

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…

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…

The characters A, E, I, O, U are known as vowels. The remaining 21 characters of English alphabets are known as consonants.

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:…

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…

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 or…

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…