find the smallest no using below lines:::: end-if display "Num3 is the smallest" display "Num3 is the smallest" else if(Number2 < Number3) then display "Num2 is the smallest" if(Number1 < Number3) then input Number1,Number2,Number3 display "Num1 is the smallest" else if(Number1 < Number2) then end-if
Answers
Answered by
3
Answer:
Get three inputs num1, num2 and num3 from user using scanf statements. Check whether num1 is smaller than num2 and num3 using if statement, if it is true print num1 is smallest using printf statement. Else, num2 or num3 is smallest. So check whether num2 is smaller than num3 using elseif statement
Similar questions