C
C++
Java
C#
Python
C
Decision Making and Branching
IF..ELSE Statement
C
Chapters
Overview
(3)
Basic Structure of C (34)
Executing 'C' Program (0)
Sample Program (4)
Constants, Variables & Data Types
(4)
C Data Types (2)
Variables & Constants (0)
Keywords & Identifier (0)
Tokens (0)
Operators and Expressions
(10)
Arithmatic Operators (1)
Increment and Decrement Operators (1)
Assignment Operators (1)
Relational Operators (1)
Logical Operators (1)
Conditional Operators (1)
Bitwise Operators (1)
Special Operators (1)
C Expressions (1)
Type Conversion (1)
I/O Operations
(2)
Printf() (1)
Scanf() (1)
Decision Making and Branching
(7)
IF Statement (5)
IF..ELSE Statement (13)
Nested IF..ELSE Statement (1)
ELSE IF Leader (1)
?:Operator (Conditional Expression) (0)
Switch Statement (2)
GOTO Statement (1)
Decision Making and Looping
(4)
While Loop (7)
Do While Loop (1)
For Loop (43)
Jumps in Loops (1)
Arrays
(4)
Declaring & Initializing Arrays (1)
One Dimensional Arrays (18)
Two Dimensional Arrays (7)
Multi Dimensional Arrays (3)
Character Arrays and Strings
(3)
Declaring & Initialization String (1)
Reading Strings (1)
String Handling Funtions (1)
Functions
(7)
Function Declaration (2)
Function Calls (20)
Function Arguments (11)
Types of Functions (2)
Recursion (1)
Passing Arrays to Functions (1)
Passing Strings to Functions (0)
Structures
(5)
Structure Initialization (3)
Size of Structures (1)
Arrays within Structure (5)
Structures within Structures (0)
Structures & Functions (4)
Unions
(3)
Union Initialization (1)
Accessing Union Members (0)
Passing Union to Function (0)
Pointers
(6)
Declaring & Initialization of Pointer (2)
Pointer and Character Strings (2)
Array of Pointers (2)
Pointer As Function Arguments (2)
Pointers to Functions (2)
Pointers & Structures (0)
File Management
(4)
Opening a File (2)
Closing a File (1)
File Operations (31)
Error Handling In File (1)
Dynamic Memory Allocation and Linked Lists
(2)
Dynamic Memory Allocation (0)
Command Line Argument (0)
IF..ELSE Statement
Decision Making and Branching
26-10-2016
855
7 Topics
13 Programs
C Program to Check Whether a Number is Even or Odd
IF..ELSE Statement
26-01-2017
C program to Check Prime Number
IF..ELSE Statement
26-01-2017
C Program that reads two real numbers and tells whether the product of two numbers is equal or greater than 100.
IF..ELSE Statement
28-04-2017
C Program that inputs two integers and determines whether it is evenly divisible by 6 and 7.
IF..ELSE Statement
28-04-2017
C Program that asks the user to input two integers, a and b, and then state whether or not a is evenly divisible by b.
IF..ELSE Statement
28-04-2017
C Program to input numbers and determine whether it is within a given range.
IF..ELSE Statement
28-04-2017
C Program to find month of year that, given an integer between 1 and 12, print the corresponding month of the year.
IF..ELSE Statement
28-04-2017
C Program to compute x for given y=3x+5 if x<=10 y=8x+5 if x>10
IF..ELSE Statement
30-04-2017
If the three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is valid or not. The triangle is valid if the sum of two sides is greater than the largest of the three sides.
IF..ELSE Statement
30-04-2017
C Program to check whether a triangle is valid or not, when the three angles of the triangle are entered through the keyboard. A triangle is valid if the sum of all the three angles is equal to 180 degrees.
IF..ELSE Statement
30-04-2017
Given the length and breadth of a rectangle, write a program to find whether the area of the rectangle is greater than its perimeter. For example, the area of the rectangle with length = 5 and breadth = 4 is greater than its perimeter.
IF..ELSE Statement
30-04-2017
In a company an employee is paid as under: If his basic salary is less than Rs. 1500, then HRA = 10 % of basic salary and DA = 90 % of basic salary.If his salary is either equal to or above Rs.1500,then HRA = Rs. 500 and DA = 98 % of basic salary. If the employee's salary is input through the keyboard write a program to find his gross salary.
IF..ELSE Statement
03-05-2017
The marks obtained by a student in 5 different subjects are input through the keyboard. The student gets a division as per the following rules: Percentage above or equal to 60 - First division Percentage between 50 and 59 - Second division Percentage between 40 and 49 - Third division Percentage less than 40 - Fail C Program to calculate the division obtained by the student.
IF..ELSE Statement
03-05-2017