ICSE Class 10 Computer Applications Question 1 of 26

Operators in Java — Question 1

Back to all questions
1
Question

Question 1

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.

Answer
int quotient = y / x;
int remainder = y % x;
Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.