Computer Science, asked by ypratik600, 1 year ago

Write the general syntax of if function

Answers

Answered by Chirpy
20

In language syntax is the arrangement of phrases and words to create well formed sentences.

In computer language it refers to the structure of statements.

The if statement is a conditional branch statement. The syntax of the if statement is

if ( booleanExpression ) { statement ( s ) }

or

if ( booleanExpression ) { statement ( s ) }  else  { statement ( s ) }

Similar questions