Question
int i = 20 ;
for( ; ; )
{
Console.Write(i + " ");
if (i >= -10)
i -= 4;
else
break;
}
a.
20 16 12 84 0 -4 -8
b.
20 16 12 8 4 0
c.
20 16 12 8 4 0 -4 -8 -12
d.
16 12 8 4 0
Posted under Control Instructions C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following is the correct output for the C#.NET program given below?
Similar Questions
Discover Related MCQs
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...
Cyber Security
Understand the fundamentals of safeguarding digital assets with our Cyber Security...