Hello guys....can you please answer this.....write an algorithm to input three numbers and print the smallest number..... please answer its urgent.....please ...the first answer will be marked brainliest..
Answers
Answered by
0
Answer:
Take three numbers as input and compare them with each other until you find the smallest number among them.
Algorithm:
step 1: print 3 integers as a, b, c
step 2: scan (a,b,c)
step 3: if (x<y and x<z) then smallest:=x
else if (y<x and y<z) then smallest:=y
else smallest:=z;
Similar questions