Ask Question
26 April, 22:46

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);

}

+4
Answers (1)
  1. 27 April, 02:22
    0
    Sorry we chose 0 for the denominator
Know the Answer?
Not Sure About the Answer?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers