## 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 the two operands.

C, C++ and C# Programming Tutorial and Examples

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 the two operands.

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 2 then *“MONDAY”* is displayed and so on. The C program code to display the day name according to number you entered are as follows.

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 400. If a number is divisible by 4 but not by 100 then, it is a leap year. Also, if a number is divisible by 4, 100 and 400 then it is a leap year. Otherwise the year is not a leap year.

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:

Armstrong number is the number whose sum of cube of individual digits is the number itself. For example: 153, 407 etc.

153 = 1^{3}+ 5^{3}+ 3^{3}// Armstrong Number

Example: Source Code to Check Armstrong Number

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

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 whether an entered character is in uppercase of lowercase is shown below.

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 not is shown below.

A quadratic equation is an equation of the form *ax ^{2 }+ bx + c = 0 *where a, b and c are constants.

And the formula to calculate the roots of the quadratic equation is:

C program to find the roots of a quadratic equation is shown below.

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 words, a digit that contains 0, 2, 4, 6 or 8 as its last digit is known as even number.