Computer Applications
We have two variables x and y. Write Java statements to calculate the result of division of y by x and calculate the remainder of the division.
Java Operators
ICSE 2005
18 Likes
Answer
int quotient = y / x;
int remainder = y % x;
Answered By
12 Likes