Write an algorithm to find the greatest number among three given numbers.

Algorithm to find the greatest number among three numbers:

  1. Start
  2. Input three numbers, A, B, and C
  3. If A > B and A > C, then
    • Print “A is the greatest number.”
  4. Else if B > A and B > C, then
    • Print “B is the greatest number.”
  5. Else
    • Print “C is the greatest number.”
  6. End

This algorithm compares all three numbers to determine the largest by checking conditions sequentially. If one number is greater than the other two, it is printed as the greatest.