0% found this document useful (0 votes)
34 views4 pages

CSF101 Lab File Sample and Objectives

Uploaded by

pooja0100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views4 pages

CSF101 Lab File Sample and Objectives

Uploaded by

pooja0100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lab Record

of

Programming for Problem Solving


(CSF101)

BACHELOR OF TECHNOLOGY
In

COMPUTER SCIENCE AND ENGINEERING

Session 2023-24

Submitted to: - Submitted by: -

Tarun Kumar Name:


Assistant Professor Roll No.:
School of Computing Sap ID:
DIT University, Dehradun Class/Section:

SCHOOL OF COMPUTING
DIT UNIVERSITY, DEHRADUN
(State Private University through State Legislature Act No. 10 of 2013 of Uttarakhand and approved by UGC)
Mussoorie Diversion Road, Dehradun, Uttarakhand - 248009, India.

August-December 2023
INDEX

Tarun 10000 B. Tech (1st Semester, Section-B P1)


School of Computing
CONDUCTION INSTRUCTOR’s
S.NO. NAME OF THE EXPERIMENTS
DATE SIGNATURE
Write a C program to demonstrate the programming
environment in C. Explain each basic entity required
1
to build a program, including the compilation and run
process.
Write the C programs to demonstrate the use of the
following operators:
• Arithmetic Operators
• Relational Operators
• Logical Operators
2
• Shorthand Assignment
• Unary Operators
• Conditional Operators
• Bitwise Operators
• Comma Operator
Write a C program to convert a floating-point number
3
into the corresponding integer and vice versa.
Write a C program to convert degrees Fahrenheit into
4
degrees Celsius.
Write a C program to print the ASCII value of a
5
character.
Write a C program to find the greatest of three
6
numbers using && and if-else-if.
Write a C program to show the use of isalpha(),
7
isdigit(), isprint() and isspace() functions with if.
Write a C program to enter numbers from 1 to 7 and
8 display the corresponding day of the week using a
switch case statement.
Write a C program to calculate the sum of numbers
9
from m to n using a while loop.
Write a C program to display the square and cube of
10
first n natural numbers using the do-while loop.
Write the C programs to print the following patterns
using the for loop:
(i) (ii)
* 1
11
** 12
*** 123
**** 1234
***** 12345
Write the programs to demonstrate the use of break,
12
continue, and goto statements.
Develop a program to calculate the sum of n array
13
elements in C.

Tarun 10000 B. Tech (1st Semester, Section-B P1)


School of Computing
Develop a program to find the largest array element in
14
C.
Develop a program to perform the multiplication of
15
two matrices.
Write the C programs to demonstrate the use of the
following string functions:
16
gets(), puts(), strlen(), strcmp(), strcpy(), strcat(),
strchr(), strstr(), strrev(), strlwr(), and strupr().
WAP to calculate the Power of a Number using a
17
function.
18 WAP to find the factorial of a number using recursion.
Write a C program to calculate the sum of two
19
numbers using a pointer.
Create a function to swap the values of two variables
20 demonstrating a call-by-value and a call-by-reference
concept.
Write a C program to
 Write a string in a file.
 Print contents in the reverse order of a file.
21
 Compare the contents of two files.
 Convert all characters in the UPPER CASE of
a File.
Write a program to read and display student
22
information using structure.

Tarun 10000 B. Tech (1st Semester, Section-B P1)


School of Computing

You might also like