You are on page 1of 2

Lab Manual # 3 Switch

Statements

3.1 Que No 1 Switch statement

Write a program in C++ using switch statement that contain option as under

Enter 1--> To Find Largest Number Among Three Variables.


Enter 2--> To Find ODD or EVEN
Enter 3--> To Find Condition of Water
Enter 4--> To Find Grade Of Student

Detail of Option 3
Temperature Less than 0 = ICE
Temperature Greater than 0 & Less than 100 = Water
Temperature Greater than 100 = STEAM

Detail of option 4

grade >= 90 Grade A

grade >= 80 Grade B

grade >=70 Grade C

grade >=60 Grade D

3.1.1 Code Area

You might also like