menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a 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
asked
Aug 3, 2019
140k
views
2
votes
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
Computers and Technology
college
Leyou
asked
by
Leyou
6.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
2
votes
I'm relatively new to coding but that looks like an infinite loop.
Neilmarion
answered
Aug 5, 2019
by
Neilmarion
7.1k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
4
votes
The answer is infinite loop the program would continue executing since the statement parameters are met by counter 10 being greater than 5
Elephantik
answered
Aug 9, 2019
by
Elephantik
7.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
7.2m
questions
9.7m
answers
Other Questions
Seven basic internal components found in a computer tower
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
This is science they just dont have the subject buy anyways describe interactions you have with the environment that you depend on to meet your basic needs hope u can help
If a person sends email from a school computer or a business computer, should that message be considered private? Does the institution or person that owns the computer from which email is sent have a right
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org