1.

What is if statement? Write it’s syntax.

Answer»

The if statement evaluates a condition, if the condition is true then a true – block (a statement or set of statements) is executed, otherwise the true – block is skipped.

The general syntax of the if statement is:

if (expression)

true – block;

statement – x;



Discussion

No Comment Found