Mahatma Education Society’s
Pillai College of Arts, Commerce & Science
(Autonomous)
Affiliated to University of Mumbai
NAAC Accredited 'A' grade (3 cycles)
Best College Award by University of Mumbai
ISO 9001:2015 Certified
CERTIFICATE
This is to certify that Mr. /Miss. Chaturvedi Amisha of F.Y B.Sc.
C.S. Semester I has completed the practical work in the Subject of
Programming in C during the academic year 2020-21 under the
guidance of Prof. __Sujatha Shahabade being the partial
requirement for the fulfillment of the curriculum of Degree of
Bachelor of Science in Computer Science, University of
Mumbai.
Place:
Date:
Name & Signature of faculty Name & Signature of
external
Dr. K.M. Vasudevan Pillai Campus, Sector 16, New Panvel - 410206. Tel : 27456100 / 1700 | Fax : 27483208 | Website :
www.pcacs.ac.in
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
INDEX
Sr.n TOPIC SIGN
o
Basic Programs:
a. Write a program to display the message HELLO
WORLD.
b. Write a program to declare some variables of type int,
1 float and double.
Assign some values to these variables and display these
values.
c. Write a program to find the addition, subtraction,
multiplication and.
Programs on variables:
a. Write a program to swap two numbers without using
a third variable.
2 b. Write a program to find the area of rectangle, square
and circle.
c. Write a program to find the volume of a cube, sphere,
and cylinder.
Programs on patterns: Programs to draw different
3 pattern
Functions Program on function with an argument and
return type
4 Programs on Functions using call by value and
reference
Recursive functions
a. Write a program to find the factorial of a number
using recursive
5 function.
b. Write a program to find the sum of natural number
using recursive
function
6 Arrays
a. Write a program to find the largest value that is stored
in the
array.
b. Write a program to compute the sum and average of
all elements stored in
an array
c. Write a program to arrange the ‘n’ numbers stored in
the array in
ascending and descending order.
d. Write a program that performs addition and
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
subtraction of matrices.
e. Write a program that performs multiplication of
matrices.
Pointers
a. Write a program to demonstrate the use of
pointers.
7 b. Write a program to perform addition and subtraction
of two pointer
variables
Structures and Unions
8 a. Programs on structures.(nested structure, array of
structure)
b. Programs on unions
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-1
AIM:- Basic Programs:
a. Write a program to display the message HELLO WORLD.
OUTPUT:
b. Write a program to declare some variables of type int, float and double.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
c. Write a program to find the addition, subtraction, multiplication and.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-2
Aim:- Programs on variables:
a. Write a program to swap two numbers without using a third variable.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
b. Write a program to find the area of rectangle, square and circle.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
c. Write a program to find the volume of a cube, sphere, and cylinder.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-3
Aim:-Programs on patterns:
Programs to draw different pattern .
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-4
Aim:- Functions Program:
Function with an argument and return type
Programs on Functions using call by value and reference.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-5
Aim:- Recursive functions:
a. Write a program to find the factorial of a number using recursive
function.
INPUTT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
b. Write a program to find the sum of natural number using recursive
function.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-6
Aim:- Arrays
a. Write a program to find the largest value that is stored in the
array .
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
b. Write a program to compute the sum and average of all elements stored in
an array.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
c. Write a program to arrange the ‘n’ numbers stored in the array in ascending and descending order.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
d. Write a program that performs addition and subtraction of matrices.
INPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
e. Write a program that performs multiplication of matrices.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-7
Aim:- Pointers:
a. Write a program to demonstrate the use of
pointers.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
b. Write a program to perform addition and subtraction of two pointer
variables.
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
PRACTICAL-8
Aim:- Structures and Unions:
a. Programs on structures.(nested structure, array of structure)
INPUT:
OUTPUT:
Name: Chaturvedi Amisha
Class: FYCS A
Roll no: 2275
b. Programs on unions.
INPUT:
OUTPUT: