menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
Given the code below, how many times would "I love C#" be output to the Console Window? 1 int counter = 10; 2 do { 3 Console.WriteLine("I love C#"); 4 counte…
Ask a Question
Questions
Unanswered
Tags
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 do { 3 Console.WriteLine("I love C#"); 4 counte…
asked
May 1, 2019
14.4k
views
3
votes
Given the code below, how many times would "I love C#" be output to the Console Window?
1
int counter = 10;
2
do {
3
Console.WriteLine("I love C#");
4
counter--;
5
}while (counter<5) ;
6
C#
0
1
10
11
Infinite Loop
Computers & Tech
college
Marena
asked
by
Marena
8.0k
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.
1
Answer
6
votes
The answer is 1.
Hope this helps
CpnCrunch
answered
May 7, 2019
by
CpnCrunch
8.7k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
5) { 3 Console.WriteLine("I love C#"); 4 counter++; 5 } C# 0 10 11 Infinite" CLASS="qa-next-q theme">Next Question →
Related questions
asked
Aug 3, 2019
140k
views
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
Leyou
asked
Aug 3, 2019
by
Leyou
8.3k
points
Computers & Tech
college
2
answers
2
votes
140k
views
asked
Oct 19, 2020
209k
views
Consider the following two C# code segments: Segment 1 Segment 2 int i = 0; for (int i = 0; i <= 20; i++ ) while ( i < 20 ) { { Console.WriteLine ( i ); i++; } Console.WriteLine ( i ); } Which of the following statements is true? A. The output from these segments is not the same. B. The scope of the control variable i is different for the two segments. C. Both (A) and (B) are true. D. Neither (A) nor (B) is true.
Steve Rindsberg
asked
Oct 19, 2020
by
Steve Rindsberg
7.6k
points
Computers & Tech
high-school
1
answer
3
votes
209k
views
asked
Sep 4, 2019
138k
views
Given the code below, what would output to the Console Window? Think carefully on this one...it is tricky! 1 string a = ”10”; 2 string b = “20”; 3Console.WriteLine(a+b+5); C# 35 "10205" 10+20+5
Oleg Sokolov
asked
Sep 4, 2019
by
Oleg Sokolov
7.6k
points
Computers & Tech
college
2
answers
2
votes
138k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
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
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty