Ask Question
9 December, 13:25

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

+4
Answers (2)
  1. 9 December, 15:14
    0
    The answer is infinite loop the program would continue executing since the statement parameters are met by counter 10 being greater than 5
  2. 9 December, 16:59
    0
    I'm relatively new to coding but that looks like an infinite loop.
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers