Showing posts with label Introduction to Programming Laboratory. Show all posts
Showing posts with label Introduction to Programming Laboratory. Show all posts

Monday, 17 August 2026

Introduction to Programming Laboratory (C-Programming Lab Manual)

Write C Programs for the Following Problems:

Programming Manual-I

1.    Write a C Program to Count the Number of Digits in a Given Integer Input by the User.

2.    Write a C Program to Reverse an Integer Entered by the User.

3.    Write a C Program to Find the Sum of the Digits of a Number Entered by the User Using a for Loop.

4.    Write a C Program to Check Whether a Number Entered by the User Is a Palindrome or Not.

5.    Write a C Program to Generate the Fibonacci Series for the Number of Terms Entered by the User.

6.    If a Four-Digit Number Is Entered Through the Keyboard, Write a C Program to Find the Sum of the First and Last Digits of the Number.

7.    Write a C Program to Find the GCD (Greatest Common Divisor or HCF) and LCM (Least Common Multiple) of Two Numbers Entered by the User.

8.    


Programming Manual-II

1.    Write a C Program to Search for an Element in an Array.

2.    Write a C Program to Find the Sum of All Elements in an Array.

3.    Write a C Program to Find the Largest and Smallest Elements in an Array.

4.    Write a C Program to Reverse the Elements of an Array.

5.    Write a C Program to Delete an Element from a Specified Position in an Array.

6.    Write a C Program to Display the Elements of a Two-Dimensional Array.

7.    Write a C Program to Add Two Matrices of User-Defined Order.

8.    Write a C Program to Multiply Two 3 × 3 Matrices.

9.    Write a C Program to Read a String and Check Whether It Is a Palindrome Without Using String-Handling Functions. (A string is a palindrome if it reads the same forward and backward. For example: abcdcba.)

10.    Write a C Program to Accept a String and Count the Number of Vowels Present in the String.

Programming Manual-III

1.    Write a C Program to Add, Subtract, Multiply, and Divide Two Integers Using User-Defined Functions with Return Values.

2.    Write a C Program to Calculate the Sum of the First 20 Natural Numbers Using a Recursive Function.

3.    Write a C Program to Generate the Fibonacci Series Using a Recursive Function.

4.    Write a C Program to Swap Two Integers Using the Call-by-Value and Call-by-Reference Methods of Passing Arguments to a Function.

5.    Write a C Program to Find the Sum of the Digits of a Number Using a Recursive Function.

6.    Write a C Program to Read an Integer and Print Its Reverse Using Recursion.

7.    Write a C Program to Find the Maximum and Minimum of Two Numbers Using Functions.

8.    Write a C Program to Check Whether a Number Is Even or Odd Using a Function.

9.    Write a C Program to Check Whether a Number Is Prime, an Armstrong Number, or a Perfect Number Using Functions.

10.    Write a C Program to Find the Power of a Number Using Recursion.












Introduction to Programming Laboratory (C-Programming Lab Manual)

Write C Programs for the Following Problems: Programming Manual-I 1.      Write a C Program to Count the Number of Digits in a Given Integer...