Selection statements | Difference between if else and if.

Choice statements
if assertion if~else
assertion


.2 yoki undan kop execution path larni tanlaydi

if ( a > = 0 )
cout << “optimistic”
if ( a < 0 )
cout << “damaging”


IF STATEMENT
. if expression is true exekute assertion
syntax


IF-ELSE STATEMENT
if expession is true execute assertion 1.if false execute assertion 2

Add a Comment

Your email address will not be published. Required fields are marked *