12. Write a program to find smaller of two numbers.
Answers
Answered by
0
Answer:
Program Explanation
check whether num1 is smaller than num2 using if statement. if num1 is smaller print num1 using printf statment, else check whether num2 is smaller than num1 using elseif statement. If num2 is smaller print num2 using printf statement, else print num1 and num2 are equal using printf statment.
Answered by
0
Program Explanation
check whether num1 is smaller than num2 using if statement. if num1 is smaller print num1 using printf statment, else check whether num2 is smaller than num1 using elseif statement. If num2 is smaller print num2 using printf statement, else print num1 and num2 are equal using printf statment.
Similar questions
English,
2 days ago
Computer Science,
2 days ago
Math,
2 days ago
Computer Science,
4 days ago
Science,
8 months ago
English,
8 months ago
Science,
8 months ago