Ask Question
7 October, 17:22

Rewrite this method so that it avoids the use of a return statement:

void divisionQuestion ()

{

int x, y;

x = (int) random (-10, 11);

y = (int) random (-10, 11);

if (y = = 0)

{

println ("Sorry we chose 0 for the denominator");

return;

}

else

println (x + " divided by " + y + " is " + x / y);

}

+5
Answers (1)
  1. 7 October, 19:43
    0
    Sorry we chose 0 for the denominator
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Rewrite this method so that it avoids the use of a return statement: void divisionQuestion () { int x, y; x = (int) random (-10, 11); y = ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers