Computer Science, asked by saronsunny9625, 9 months ago

Write an algorithm to find the greatest among two different numbers entered by the user.

Answers

Answered by mazinmohd3
9

Answer:Algorithm to find the greatest among two different numbers entered by the user.

Explanation:

Step 1: Start

Step 2: Declare variables a & b

Step 3: If a>b

            Display a is the largest

            Else

            Display b is the largest

Step 4: Stop

Answered by kaninin461
0

Answer:

INPUT num1, num2

IF num1 > num2 THEN

    PRINT num1

ELSE IF num2 > num1 THEN

    PRINT num2

END IF

Explanation:

Similar questions