Finding the quotient and remainder is one of the most basic problems of mathematics . In this post we are going to see how can we implement this code in java .
The formula for the quotient and remainder is following .
Quotient = Divident / Divisor ;
Remainder = Divident % Divisor ;
Input : Divident = 10 ; Divisor = 3;
Output : Quotient = 3 , Remainder = 1
Output : Quotient=3
Remainder=1