Question: write a C program that divides two random numbers selected automatically and asks the user to input the quotient and the remainder. If the quotient
write a C program that divides two random numbers selected automatically and asks the user to input the quotient and the remainder. If the quotient and the remainder are correct, display the message "Correct", if any of the quotient or remainder is incorrect, display the message "Incorrect". Use the modulus operator to calculator and remainder. Important Note: Include the logic to make the numerator the larger of the two numbers to avoid answers less than 1. The question displayed for the division should present the larger number first and then the / symbol and the smaller number at the last. Display appropriate messages as per the answers given by the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
