Select Page

# If Else Programs

This is Most Used Statement In Any programming To Take Decision. Here We Go For Important If Else Programs. ## If Else Programs

Write a C program to find maximum between two numbers.
Write a C program to find maximum between three numbers.
Write a C program to check whether a number is negative, positive or zero.
Write a C program to check whether a number is divisible by 5 and 11 or not.
Write a C program to check whether a number is even or odd.
Write a C program to check whether a year is leap year or not.
Write a C program to check whether a character is alphabet or not.
Write a C program to input any alphabet and check whether it is vowel or consonant.
Write a C program to input any character and check whether it is alphabet, digit or special character.
Write a C program to check whether a character is uppercase or lowercase alphabet.
Write a C program to input week number and print week day.
Write a C program to input month number and print number of days in that month.
Write a C program to count total number of notes in given amount.
Write a C program to input angles of a triangle and check whether triangle is valid or not.
Write a C program to input all sides of a triangle and check whether triangle is valid or not.
Write a C program to check whether the triangle is equilateral, isosceles or scalene triangle.
Write a C program to find all roots of a quadratic equation.
Write a C program to calculate profit or loss.
Write a C program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F
Write a C program to input basic salary of an employee and calculate its Gross salary according to following:
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary <= 20000 : HRA = 25%, DA = 90%
Basic Salary > 20000 : HRA = 30%, DA = 95%
Write a C program to input electricity unit charges and calculate total electricity bill according to the given condition:
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs. 1.20/unit
For unit above 250 Rs. 1.50/unit

### BECOME A CERTIFIED DEVELOPER!

#### Basic C Programs

List Of Basic C Programs. Checkout Step By Step Solution.

#### Programs On Number

List Of C Programs Based On Numbers. Checkout Step By Step Solution.

#### String Programs

List Of C Programs Based On String Concept. Checkout Step By Step Solution.

#### Array Programs

List Of C Programs Based On Array Concept. Checkout Step By Step Solution.

#### Sorting Programs

List Of C Programs Based On Sorting Concept. Checkout Step By Step Solution.

#### Pointer Programs

List Of C Programs Based On Pointer Concept. Checkout Step By Step Solution.

#### Star Pattern Programs

List Of Important Star Pattern C Programs. Checkout Step By Step Solution.

#### Number Pattern Programs

List Of Important Number Pattern C Programs. Checkout Step By Step Solution.

#### File Handling Programs

List Of C Programs Based On File Handling Concept. Checkout Step By Step Solution.

#### Programs On Recursion

List Of C Programs Based On Recusrion Concept. Checkout Step By Step Solution.

#### Geometry Programs

List Of Important C Programs Based On Geometry. Checkout Step By Step Solution.

#### Programs On Loop

List Of C Programs Based On The Concept Of Loop. Checkout Step By Step Solution.

#### Programs On Function

List Of C Programs Based On The Concept Of Function. Checkout Step By Step Solution.

#### Switch Case Programs

List Of C Programs Based On Switch Case Concept. Checkout Step By Step Solution.

#### If Else Programs

List Of C Programs Based On If Else Concept. Checkout Step By Step Solution.

#### Bitwise Operator

List Of C Programs Based On BitWise Operator. Checkout Step By Step Solution.

#### Conditional Operator

List Of C Programs Based On Conditional Operator. Checkout Step By Step Solution.

#### Matrix Programs

List Of C Programs Based On The Concept Of Matrix. Checkout Step By Step Solution.

#### Program On Calculation

List Of C Programs Based On Calculation. Checkout Step By Step Solution.

#### Number System Conversion

List Of C Programs Based On Number System Conversion. Checkout Step By Step Solution.

#### All C programs

List Of Hundreds Of C Programming Examples With Solution.