## Sequential: Simple Logic Programs

Average of three entered numbers

Swapping values of two variables

Swapping without using third variable

Celsius to Fahrenheit conversion

Find area and circumference of circle

Hours to minutes and seconds conversion

## Branching: Selection Logic & Decision Making Programs

Absolute value of number (simple if)

Checking odd or even number (if else)

Greater in two numbers (if else)

Finding grade from percent (else if ladder)

Total percent and division (else if ladder)

Greatest in three numbers (nested if)

Simple calculator program (switch case single case)

Switch between Mon to Sun (switch case single case)

Checking vowel or consonant (switch case multiple case)

Number of days in a month (switch case multiple case)

Unconditional Branching (break continue and goto)

## Looping: Iteration Logic or Repetition Logic Programs

Generate series of natural numbers (while, for, do while)

Generate series of natural numbers and their sum

Generate series of odd numbers and find their sum

Generate series of even numbers and find their sum

Generate table of given number

Find factorial of given number

Generate multiplication table of given number

Generating series of prime numbers

Reverse of digits of given number

Generating series of Armstrong numbers

## ASCII: Programs related to ASCII Table

Find ASCII values of a character

Convert lowercase to uppercase

Convert uppercase to lowercase

## Pointer Example Programs

Declaration and assignment of pointer

Sum of two numbers using pointer

Average of three numbers using pointer

Swapping two variables using pointer

## Array Example Programs

Declaration and initialization of array

Sum and average of array elements

Searching in array (Linear search)

Sorting in array (Selection sort)

## Matrix Example Programs

## Structure Example Programs

Declaration and initialization of structure

## Union Example Programs

Declaration and initialization of union

Differentiate Structure and Union

## String Example Programs

String input-output without space

String input-output with space

Strlwr() function example program

Strupr() function example program

Strlen() function example program

Strrev() function example program

Strcpy() function example program

Strcat() function example program

Strcmp() function example program

## Function Example Programs

Sum of two numbers using function

Average of three numbers using function

Swapping using function call by value

Swapping using function call by reference

Passing array as function argument

Passing structure as function argument

## Recursion Example Programs

## File Example Programs

Reading all data from a file in C