You are on page 1of 3

Programming in C Language

INDIRA GANDHI DELHI TECHNICAL UNIVERSITY FOR


WOMEN
KASHMERE GATE, DELHI-110006
INDIA

Department of Computer Science and Engineering


Programming in C language (BCS-101)

Lab File (2022-2023)


for
1st Semester

Submitted to Submitted by:


Ms. Deepika Suhag Student Name
Roll Number

INDIRA GANDHI DELHI TECHNICAL UNIVERSITY FOR WOMEN Page 1


Programming in C Language

INDEX
S. No. Lab Exercise Date Page No. Remark

INDIRA GANDHI DELHI TECHNICAL UNIVERSITY FOR WOMEN Page 2


Programming in C Language

Lab exercise#1

Objective(s):
To be familiar with the structure of c
program and its syntax.
To learn program solving techniques using c.

Program:
Write a program to calculate and display the
volume of cuboid having its height as
h,width as w,depth as d:

Algorithm:
Start
Define variables:h(int),w(int),d(int),vol(int).
Assign values to the variables:
Calculate the volume as:vol=h*w*d
Display the volume
Stop

Flowchart:

INDIRA GANDHI DELHI TECHNICAL UNIVERSITY FOR WOMEN Page 3

You might also like