0% found this document useful (0 votes)
8 views3 pages

PICL Assi3 - Write A C Program To Relate Two Integers Using, - or - Using Nested Ifs Multiple Ifs Switch Case

The document outlines a lab assignment for CSE students at Symbiosis Institute of Technology, focusing on writing a C program to compare two integers using nested ifs, multiple ifs, and switch case. It includes theory questions regarding nested if statements, relational operators, and switch case format, along with practice questions for additional programming exercises. The conclusion states that the program successfully compares integers and provides the expected output.
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)
8 views3 pages

PICL Assi3 - Write A C Program To Relate Two Integers Using, - or - Using Nested Ifs Multiple Ifs Switch Case

The document outlines a lab assignment for CSE students at Symbiosis Institute of Technology, focusing on writing a C program to compare two integers using nested ifs, multiple ifs, and switch case. It includes theory questions regarding nested if statements, relational operators, and switch case format, along with practice questions for additional programming exercises. The conclusion states that the program successfully compares integers and provides the expected output.
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/ 3

Symbiosis Institute of Technology

Faculty of Engineering
CSE- Academic Year 2024-25
Data Structures – Lab Batch 2023-27
Lab Assignment No:- 3

Name of Student

PRN No.

Batch

Class

Academic Year &


Semester

Date of Performance

Title of Assignment: Write a C Program to relate two integers using =, > or < using
a. nested ifs & multiple ifs
b. switch case

Theory Questions: 1. Explain the purpose of using nested if statements in this C program.
2. Discuss the significance of using relational operators (=, >, <) in
programming.
3. Discuss format of switch case
Algorithm & Flow
Chart and Source
Code

Output Screenshots

Practice questions Write a C program to find the maximum of three integers using nested if
statements.
● Develop a C program to check if a given year is a leap year or not using
conditional
statements.
● Create a C program to calculate the factorial of a given number using a
loop and if
statements.

Conclusion The C program successfully compares two integers using the relational
operators =, >,
and <, employing nested if statements and multiple conditions. The program
effectively
determines the relationship between the two input integers and provides the
corresponding output.

You might also like