Ask Question
1 March, 07:33

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

+5
Answers (2)
  1. 1 March, 09:33
    0
    I'm relatively new to coding but that looks like an infinite loop.
  2. 1 March, 10:34
    0
    The answer is infinite loop the program would continue executing since the statement parameters are met by counter 10 being greater than 5
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” 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