Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 673 Bytes

0051.md

File metadata and controls

39 lines (32 loc) · 673 Bytes

Which of the following options shows the correct IF statement format?

  • A)
if (expression) { 
    // code to execute if the expression evaluates to true
}
  • B)
if {expression} (
    // code to execute if the expression evaluates to true 
) fi
  • C)
if {expression} ( 
    // code to execute if the expression evaluates to true
)
  • D)
if (expression) { 
    // code to execute if the expression evaluates to true 
} fi
Answer

Answer: A