You are on page 1of 2

NAME: SHAIKH MOHAMMED TOUSIF MOHAMMED UZAIR

ROLL NUMBER:312049
BRANCH: COMPUTER ENGINEERING

Experiment:2

Problem Write a program to find the largest of the three numbers using
Statement conditional operator.

Problem Accept three numbers from user and display the largest number using the
Definition conditional operator.

a. Input Specification: 3 integer numbers


b. Process specification: find out largest number among 3 integer
numbers
c. Output Specification: Largest integer number

Algorithm BEGIN
READ A, B, C
IF (A>B) AND(A>C)
LARGEST=A
ELSE IF(B>C)
LARGEST=B
ELSE
LARGEST=C
PRINT LARGEST
END
Flowchart
START

Read A, B, C

True False
A>B

False False True


True
A>C B>C

Print A Print C Print C Print B

STOP

Programs and Outputs

You might also like