ankitweblogic logo
W e b t u t o r i a l s

Programing Approach


Flow Chart

Define C

Define Programming

C - Syntax

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

Constant Variable

C - Escape Sequence

Control Structure - if

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Jumping Statements

C - Arrays 1D

C - Arrays 2D

C - Sorting


Character I/O Function

C - Strings

Ex: Strings

Array of Strings

C - Math Functions

User-defined Function

Exercise Function

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

C - Typedef

C - File Handling

Ex: File Handling

Command Line Argument


Exercise Questions on If

  1. Input number and find it is odd or even.
  2. Input year and find it is leap year or not.
  3. Input 2 numbers and find greater.
  4. Input 3 numbers and find the largest number.
  5. Input amount of purchase and calculate discount if amount is greater than 1000 than 15% discount is given otherwise 5%.
  6. Input 3 angles of triangle and check whether a triangle is valid or not. A triangle is valid if the sum of all the three angles equal to 180 degrees.
  7. Input 5 subjects marks and find percentage & print its division on the following slabs:
    Per above or equal to 60 – 1st division
    Per between 50 and 59 – 2nd division
    Per between 40 and 49 – 3rd division
    Per less than 40 - Fail.
  8. WAP to input working hour of a employee and find per day salary on the following conditions:
    First 8 hrs – Rs 600 per hour
    Next 4 hrs – Rs 400 per hour
    Next 4 hrs – Rs 300 per hour
    Next 4 hrs – Rs 200 per hour
  9. WAP to Calculate tax on the following slabs:
    Below 50000 Nil
    50001 – 90000 20%
    90001 – 150000 30%
    Above 150001 35%
  10. 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 WAP to find his gross salary.
  11. WAP to generate electricity bill for n customers, Keeping in mind different rates.
Updated: 14-Feb-2019