Computer Science, asked by Nitinshrama8055, 11 months ago

Write an algorithim to find largest and smallest number among three numbers given as input

Answers

Answered by ua57116
0

Answer:

If the numbers are to be given by the user then following algorithm is the basic one by using nested if statements.

Step 1: Start

Step 2: Declare variables a,b and c.

Step 3: Read variables a,b and c.

Step 4: If a>b

If a>c

Display a is the largest number.

Else

Display c is the largest number.

Else

If b>c

Display b is the largest number.

Else

Display c is the greatest number.  

Step 5: Stop

Explanation:

Similar questions