Minggu, 17 Maret 2013

If-else structure is used when we want to execute a statement with a condition statement true and others false conditions.

The form of the if-else,

if (boolean_expression)
statement;
else
statement;




For more than one line,


if (boolean_expression) {
statement1;
.....................;
}
else {
statement1;
.....................;
}

0 komentar:

Posting Komentar