TRINITY INTERNATIONAL SS & COLLEGE
Dillibazar Height, Kathmandu, Nepal
LAB WORK # 2: C Programming: Selection Control Statement
(COMPUTER SCIENCE)
SUBMITTED BY: SUBMITTED TO:
NAME: Sushanta Bhatta
GRADE: XI (DF-1)
DATE : 2081/09/08 ACHYUT SHAH THAKURI
Faculty of Computer Science
KATHMANDU, NEPAL
2024
Table of Contents
S. No. Page No.
1. Acknowledgement I
2. Objectives II
3. Theoretical Background (1-….)
3.1 C Programming
3.1.1 Selection Control Statement
4. Work Done
4.1 Work Done on Selection Control Statement ..….
5. Conclusion ……
1. Acknowledgement.
I would like to express my sincere gratitude to Achyut Shah Thakuri for his invaluable
guidance and support throughout this C programming lab. His insightful explanations
and timely feedback were instrumental in my understanding of the core concepts of C
programming, such as variables, data types, operators, control flow statements, and
functions. His patience and encouragement motivated me to persevere through
challenges and strive for excellence. I am particularly grateful for his assistance in
troubleshooting errors and providing alternative approaches to problem-solving. I got to
learn a lot from his expertise in C programming, especially in the area of input and
output operations. By sharing his knowledge and experience, he helped me to develop a
deeper understanding of the underlying principles and best practices
2. Objective
The main objectives of the lab work are as follows:
1. To get familiar with different programming constructs.
2. To understand and apply conditional statements.
3. To understand nested if and create complex statements.
4. To understand and apply Switch statement.
4. Conclusion
In this lab, I successfully achieved the objectives outlined. I became familiar with
various programming constructs, enhancing my understanding of fundamental concepts.
The implementation of conditional statements helped me learn how to apply decision-
making logic effectively in programs. Through the practice of nested if statements, I
gained the ability to construct and analyze complex logical conditions. Additionally, I
explored the switch statement, understanding its structure and applications in simplifying
multi-condition scenarios. Overall, this lab reinforced my comprehension of control
structures and their significance in writing efficient and readable programs, meeting all
the stated objectives.