Practical List

Practical List – 1

  1. Write a program to print your address.
  2. Write a program to perform average of five variables.
  3. Write a program to print area of circle.
  4. Write a program to convert years into minutes.
  5. Write a program to perform all the arithmetic operations together in a single program.

Practical List – 2

  1. Write a program to print a character entered by user.
  2. Write a program to convert small letter case to upper letter case.
  3. Write a program to swap the values of two variables using third variable.
  4. Write a program to swap the values of two variables without using third variable.
  5. Write a program to find maximum and minimum numbers from two numbers by using conditional operator.
  6. Write a program to demonstrate bit-wise operator.

Practical List – 3

  1. Write a program to check whether the entered number is odd or even by using if else statement.
  2. Write a program to check whether entered character is alphabet, digit or special symbol.
  3. Write a program to find whether entered year is leap year or not.
  4. Write a program to check how many days are there in entered month by using switch case.
  5. Write a program to check whether entered character is vowel or consonant by using switch case.
  6. Write a program to get maximum number among three.
  7. Write a program to calculate grade of given marks.
  8. Write a program to print first 10 integers by using go to statement.
  9. Write a program to print addition of first n numbers by using go to statement.

Practical List – 4

  1. Write a program to find reverse of given numbers. (Example 132-231)
  2. Write a program to check whether entered number is Armstrong or not.
  3. Write a program to check whether entered number is palindrome or not.
  4. Write a program to print factorial of a given number.
  5. Write a program to check whether entered number is prime or not.

Practical List – 5

  1. Write a program to print following pattern.

1

1   2

1   2   3

1   2   3   4

1   2   3   4    5

  1. Write a program to print following pattern.

*

* *

* * *

* * * *

* * * * *

  1. Write a program to print following pattern.

1

2 2

3 3 3

4 4 4 4

5 5 5 5 5

  1. Write a program to print following pattern.

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

  1. Write a program to print following pattern.

1

2  3

4  5  6

7  8  9  10

11 12 13 14 15

  1. Write a program to print following pattern.

5 4 3 2 1

5 4 3 2

5 4 3

5 4

5

  1. Write a program to print following pattern.

1 1 1 1 1

2 2 2 2

3 3 3

4 4

5

  1. Write a program to print following pattern.

a b c d e

a b c d

a b c

a b

a

  1. Write a program to print following pattern.

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

  1. Write a program to print following pattern.

1

1 2 1

1 2 3 2 1

1 2 3 4 3 2 1

1 2 3 4 5 4 3 2 1

  1. Write a program to print following pattern.

5

5 4

5 4 3

5 4 3 2

5  4  3  2  1

  1. Write a program to print following pattern.

1

0 1

1 0 1

0 1 0 1

1 0 1 0 1

Practical List – 6

  1. Write a program to print 1 to 5 numbers using array.
  2. Write a program to print 1 to 5 reverse numbers using array.
  3. Write a program to find sum and average of five numbers.
  4. Write a program to find maximum and minimum number from given array.
  5. Write a program to find number of positive, negative and zero from given array.
  6. Write a program to find number of odd and even from given array.
  7. Write a program to sort given n number using array.
  8. Write a program to read matrix, display original and transpose of matrix.

Practical List – 7

  1. Write a program to copy one string to another string.
  2. Write a program to concatenate two strings.
  3. Write a program to find length of given string.
  4. Write a program to find length of given string without using string function.
  5. Write a program to copy one string to another string without using string function.
  6. Write a program to compare two strings.
  7. Write a program to reverse a given string.
  8. Write a program to find given string is palindrome or not.
  9. Write a program to convert a given string into upper case string.

Practical List – 8

  1. Write a user defined function (UDF) to print whether entered number is odd or even.
  2. Write a program to add first n numbers using user defined function (UDF).
  3. Write a program to find out average of first n numbers using user defined function (UDF).

Practical List – 9

  1. Write a program to declare structure student having member’s grade, name and roll number and access them in various ways.
  2. Write a program using structure to get name, roll number, and marks of a students of a class and find out who got highest marks. Use concept of structure within structure.
  3. Write a program to create an employee structure having member’s name, salary, Get data in employee structure through one function and display data using another function. Use concept of struct and function.

Practical List – 10

  1. Write a program to declare and use pointer variables.
  2. Write a program to swap two values with help of call by value and call by reference.
  3. Write a program to find length of string using pointer and without using string functions.

END

Leave a Reply