Answers

JD

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


A
JD

Answered

_____ are statements in the code that document the code and do not affect how it runs.

A) Methods
B) Variables
C) Comment lines
D) Blue keywords

On Jun 18, 2024


C