Write a program to input three numbers and print the smallest one
Answers
Answered by
0
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
Computer Science,
23 days ago
Biology,
23 days ago
Social Sciences,
8 months ago
Math,
8 months ago
Science,
8 months ago