Programming Constructs
Selection:
these are 5 types .a) Simple If
If(condition) { Statements }
b) If Else
if ( condition) { Statement } else { Statement }
c) Multiple Ifs
If (condition) { Statement } If(condition) { Statement }
d) Nested Ifs
If (condition) { Statement } else if ( condition) { Statement } : Else { Statement : }