Question

write the output produced from the console? count=0; sum=0; while ( count < 10) { sum...

write the output produced from the console?
count=0;
sum=0;
while ( count < 10)
{
sum += 1 ;
count ++;
}
Console.Write ( "{0} {1}", sum,count);
0 0
Add a comment Improve this question Transcribed image text
Answer #1

output would be

10, 10

Every time we are doing increment of 1 in sum and increment of 1 in count. Loop exits when counter becomes 10.

Add a comment
Answer #2
Answer will be 10
source: Dav school
answered by: Niha parveen
Add a comment
Know the answer?
Add Answer to:
write the output produced from the console? count=0; sum=0; while ( count < 10) { sum...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT