Answered
boolean found = false;
Int num;
Int square;while (!found)
{
Num = console.nextInt() ;
Square = num * num;
If (square > 40)
Found = true;
}The above code is an example of a(n) ____ loop.
A) flag-controlled
B) counter-controlled
C) EOF-controlled
D) sentinel-controlled
On Jun 22, 2024