Computer Science, asked by govindraidas3, 4 days ago

12. Write a program to find smaller of two numbers.

Answers

Answered by asrajawat4998
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 mkumari58122
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