Which of the following is a syntactically correct do-while loop? O a. do; b. printf("counter is %d",counter); while(counter<10) O d. do printf("counter is %d",counter); while(counter<10) O c. do printf("counter is %d",counter); while(counter<10); do [printf("counter is %d",counter)]; while(counter<10);

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 5E
icon
Related questions
Question
Which of the following is a syntactically correct
do-while loop?
O a.
O b.
do;
O d.
printf("counter is %d",counter);
while(counter<10)
do
printf("counter is %d",counter);
while(counter<10)
c. do
printf("counter is %d",counter);
while(counter<10);
do
[printf("counter is %d",counter)];
while(counter<10);
Transcribed Image Text:Which of the following is a syntactically correct do-while loop? O a. O b. do; O d. printf("counter is %d",counter); while(counter<10) do printf("counter is %d",counter); while(counter<10) c. do printf("counter is %d",counter); while(counter<10); do [printf("counter is %d",counter)]; while(counter<10);
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of Loop
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,