What is the output of the following code segment? s=1; while(s < 4) ++s; Write("{0} ", s); a. 1 b. 4 c. 1 2 3 4 d. 2 3 4
What is the output of the following code segment? s=1; while(s < 4) ++s; Write("{0} ", s); a. 1 b. 4 c. 1 2 3 4 d. 2 3 4
Chapter5: Looping
Section: Chapter Questions
Problem 17RQ
Related questions
Question
What is the output of the following code segment?
s=1;
while(s < 4)
++s;
Write("{0} ", s);
a. 1
b. 4
c. 1 2 3 4
d. 2 3 4
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,