Fundamentals of Computer Programming - Old Questions

1. Draw the flow chart for finding largest of three numbers and write an algorithm and explain it.

6 marks | Asked in 2065

Algorithm:

1.  Start

2.  Input A,B,C

3.  If (A>B) and (A>C) then print “A is greater”.

Else if (B>A) and (B>C) then print “B is greater”.

Else print “C is greater”.

4.  Stop

 

Flowchart: