- In this program, the user is asked to enter two integers (dividend and divisor). They have stored in variables dividend and divisor respectively.
- If the user gives input zero in the divisor stage then the program will execute. Because numbers can not be divided zero in math.
- Then the quotient is evaluated using / (the division operator), and stored in quotient
- Similarly, the remainder is evaluated using % (the modulo operator) and stored in the remainder
- Finally, the quotient and remainder are displayed as output