Write an algorithm to find the smallest number among three numbers
Answers
Answered by
2
Answer:
•Declare three variable a, b, c.
Compare a with b and c. If a is smaller than b and c than a is smallest among three numbers.
•Compare b with a and c. if b is smaller than a and c than b is smallest among three numbers.
•Else c is smallest among three numbers.
Similar questions