Ask 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

Console. WriteLine ("I love C#");

4

counter++;

5

}

C#

0

10

11

Infinite Loop

+5
Answers (2)
  1. 12 February, 19:44
    0
    I'm relatively new to coding but that looks like an infinite loop.
  2. 12 February, 19:46
    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?
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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers