Given the code below, how many times would "I love C#" be output to the Console Window?
1
int counter = 10;
2
while (counter>5) {
3
Console.WriteLine("I love C#");
4
counter++;
5
}
C#

0

10

11

Infinite Loop

Respuesta :

The answer is infinite loop the program would continue executing since the statement parameters are met by counter 10 being greater than 5
044112
I'm relatively new to coding but that looks like an infinite loop.