Starting from:

$12

program that decides whether integer number input1 can be divided by integer...

Write a program that decides whether integer number input1 can be divided by integer number input2 without remainder. The program should output “No Remainder” if there is no remainder and “Remainder is: ” if there is any. In this latter case, the program should output the value of the remainder as well.
Sample Output
Enter integer input1: 1Enter integer input2: 1No RemainderDo you want to continue (enter 1 for yes, 2 for no): 1Enter integer input1: 2Enter integer input2: 3Remainder is: 2Do you want to continue (enter 1 for yes, 2 for no): 2

More products