Computer Science, asked by djalok20532w, 1 day ago

Write the syntax for the following 1 if statement 2. if...else statement 3. if ...elif….else statement​

Answers

Answered by preetagoswami
1

Answer:

if statement

syntex

if ( condition )

{

// statements to execute if

// condition is true

}

if..else statements

syntex

if ( condition )

{

// Executes this block if

// condition is true

}

else

{

// Executes this block if

// condition is false

}

Explanation:

Hope it helps mate

Similar questions