You are on page 1of 3

L J INSTITUTE OF ENGINEERING & TECHNOLOGY, LJU

SUBJECT:- COMPUTER PROGRAMMING USING C


IPE PRACTICAL LIST_SEM-I_2021
Sr No.
Aim of Practical
1 Write a program to create the structure of product that contain the members of Code, name, quantity
and sort all the data of structure in ascending order of their products’ code.
2 Write a C program that accepts choice (Addition, subtraction, multiplication, division or exit) from the
keyboard until user selects exit as a choice. The program will perform and print the result for addition,
multiplication, subtraction and division with Switch statement.
3 Write a C function to exchange two numbers and use it to reverse an array of 10 integers accepted from
user.
4 Write a program to Calculate Sum of Maximum of 10 Positive Numbers & Skip Negative Numbers for
sum and also count how many negative numbers and positive numbers entered by user.
5 Write a c program to print factors of a given number and also find sum of all the factors of a given
number.
6 Write a program to accept n integer numbers and to print an element which has highest occurrence in
the entered numbers.
7 Write a C Program to Display Prime Numbers Between Two Intervals.
8 Write a program to calculate nCr using user defined function. nCr = n! / (r! * (n-r)!)
9 Write a C Program to Convert Binary Number to Decimal.
10 Write a program to convert Decimal number to Hexa Decimal number.
11 Write C Program to Find Neon Number.
(Ex- If the sum of digits of the square of the number is equal to the same number, then the number is
called Neon number.)
Example:- 9
Square of 9 = 92= 81
Sum of the digits of the square = 8+1= 9
So, 9 is a Neon number.
12 Write a program print Armstrong Number between 1 to 1000.
13 Program to print Pattern.
1
A B
1 2 3
A B C D
1 2 3 4 5

1
14 Program to print Patterns.
*********
*******
*****
***
*
15 Program to print Patterns.
***************
* *
* *
* *
* *
* *
**
*
16 Program to print Pattern.
1
121
12321
1234321
123454321
17 Write a C function to swap two integers’ value accepted from user. (with using Call by Reference)
18 Write a program to sort given numbers in ascending order using 1-D array.
19 Write a program which declares a structure named “Faculty” with Fac_id, name (Nested structure
F_name, M_name,L_name), address, salary and date of joining. Print all faculties details in the order of
highest salary.
20 Write C Program to Remove all Characters in a String Except Alphabets.
21 Write two function which takes 2 numbers as parameters and one function returns the GCD of the 2
numbers and another function returns LCM of two numbers. Call the function in main ().
22 Write two different functions for string, one is to join one string to another string without using string
handling function and one is to copy one string to another string without using inbuilt functions.
23 Write a Program to Check whether String is Palindrome or not without using inbuilt functions.
24 Write a Program to count vowels, consonants, digits and white space in a given string.
25 Write a program to read two matrices from the user and store the multiplication of two matrices in the
resultant matrix. i.e. C=A * B.
26 Write a function to Read an integer number and find out the sum of all digits until it comes to a single
unit.

2
27 Write a Program for Searching a product from array of Structure. Structure contain member like product
code, Product Name, Quantity, Price. Find the Product name, quantity & Price according to the Code
that is given by user.
28 Write a program in C to sort an array using Pointer and functions both. At least one Argument to the
function should be a pointer.
29 Write a program to Swap three numbers in Cyclic Order Using Call by Reference.
Enter a, b and c respectively: 1 2 3
Value before swapping:
a=1
b=2
c=3
Value after swapping:
a=3
b=1
c=2
30 Write a program to make one structure student in which members are roll no, name (nested structure
first name, middle name, last name), DOB (nested structure d, m, y). Write a code for delete record of
student with given first name.

You might also like