1.

Write an algorithm to find largest of three numbers.

Answer»

Step 1: start

Step 2: input a, b, c 

Step 3: let max = a

Step 4: is b > max? then max = b

Step 5: is c > max? then max = c

Step 6: print max

Step 7: stop



Discussion

No Comment Found

Related InterviewSolutions