230k views
4 votes
Which symbols are most appropriate to use to enclose a code block for a do-while loop?

Ohyphens (--)
O asterisks (**)
O curly brackets (
O parentheses ()

User Lizzy
by
7.7k points

1 Answer

5 votes

Final answer:

The most appropriate symbols to use to enclose a code block for a do-while loop are curly brackets {}.


Step-by-step explanation:

The most appropriate symbols to use to enclose a code block for a do-while loop are curly brackets {}. These symbols are commonly used in programming languages like C, C++, Java, and JavaScript to define the beginning and end of a block of code. The curly brackets help to clearly indicate the scope of the loop and improve code readability.


Learn more about Symbols for code blocks in do-while loops

User Victor Zuanazzi
by
7.9k points