Professional Documents
Culture Documents
CP Exp 2
CP Exp 2
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.
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
STOP