menu
Qammunity.org
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 QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
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
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
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!
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org