8.4k views
5 votes
When creating an if() statement, when are curly braces required?

A. when there is only one statement line related to the test condition
B. when there are two or more statement lines related to the test condition
C. never
D. always

1 Answer

2 votes

Answer:

B. When there are two or more statements lines related to the test condition.

Sorry if I got it wrong.

User Zerodeux
by
6.3k points