Code:
Output:
note:
this is wrong to fix it see next code
Code:
Output:
note:
'{}' -curly braces used with 'if' & 'else' statement
but if you want to do only 1 line no need
other wise should use the braces.
Logical Operations
&& - AND
|| - OR
! - NOT
Code:
Output:
note:
this is a wrong one so you can use 'else if'
to fix it
No comments:
Post a Comment