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


6 Mark question | Asked in (TU CSIT) C Programming 2065

Solution

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: