Draw a flowchart for finding the maximum of three inputted integers

Subject Introduction to Computer System
NU Year Set: 6.(c) Marks: 4 Year: 2009
  • Algorithm : a

    •  Step 1 : Start
    •  Start 2 : Input a, b, c
    •  Start 3 : if a > b goto step 4, otherwise goto step 5
    •  Start 4 : if a > c goto step 6, otherwise goto step 8
    •  Start 5 : if b > c goto step 7, otherwise goto step 8
    •  Start 6 : Output "a is the largest", goto step 9
    •  Start 7 : Output "b is the largest", goto step 9
    •  Start 8 : Output " c is the largest", goto step 9
    •  Start 9 : Stop
Login to post your comment.