Sunteți pe pagina 1din 8

LAB 3

Vhelarasu Kaleesvran (18DOE181037)


TITLE : Nested...If,switch..case statement and flowchart
OBJECTIVE : At the nd of this lab,student should be able to:
1. Write C programmeusing selection statement if..nested and
Switch..case.
2. Solve selection structure problems using flowchart
EQUIPMENT : 1.Computer
2.C Progaming
Program 4.1

1. Write a program

Input :

2.Compile and run the program to check errors.

3.Test the program.Copy the output.


4.Draw a flowchart.

Output:

Program 4.2

Input :

1.Draw a flowchart

2.Write a program using nested if statement


Output :

Program 4.3 :

Input :
Output :
Program 4.4 :

1.Write a program above

2.copy the output

3.draw a flowchart

Input 1 :
Input 2 :

Output :
Program 4.5

Input :
Output:

S-ar putea să vă placă și