Algorithm:
- Start
- Read Three Number A,B and C
- Check, Is A is greater than B (A>B)
- If Yes, Check, Is A is greater than C (A>C)
- 4.1 If Yes, print “A is Largest Number”
- 4.2 If No, print “C is Largest Number”
- If No, Check, Is B is greater than C (B>C)
- 5.1 If Yes, print “B is Largest Number”
- 5.2 If No, print “C is Largest Number”
- Stop
Flowchart
Alternative Method:
Algorithm
- Start
- Read Three Number A,B and C
- if (A > B && A > C)
- Print “A is Largest Number”
- Else if (B > A && B >C)
- Print “B is Largest Number”
- Else
- Print “C is Largest Number”
- Stop
Flowchart