Solved

Int Sum = 0;int Limit = Console.nextInt();

Question 25

Multiple Choice

int sum = 0;int limit = console.nextInt() ;
Int counter = 0;while (counter <= limit) {
Entry = console.nextInt() ;
Sum = sum + entry;
Counter++;
}The above code is an example of a(n) ____ while loop.


A) flag-controlled
B) counter-controlled
C) EOF-controlled
D) sentinel-controlled

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions