2 WAP to find enter two no, and find
Sum, difference, multiplication, division and reminder of these no.
Answers
Answered by
4
Answer:
Given two positive integers dividend and divisor, our task is to find quotient and remainder. The use of division or mod operator is not allowed.
Examples:
Input : dividend = 10, divisor = 3
Output : 3, 1
Explanation:
The quotient when 10 is divided by 3 is 3 and the remainder is 1.
Input : dividend = 11, divisor = 5
Output : 2, 1
Explanation:
The quotient when 11 is divided by 5 is 2 and the remainder is 1.
Similar questions