A not a false true true false 17 if without else take

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: both are) EXP1 EXP1 and EXP2 EXP1 or EXP2 True True True True True EXP2 False False True False True False True False False False False 14 Boolean expressions • Combining expressions with and and or 15 5 13 ­09 ­16 Which way is beKer? However, this way seems more readable Again, there is no right or wrong—both will work fine Use the one that is the most readable to you! 16 The not operator • The not of a Boolean value is true when the original value is false and is false when the original value is true. A not A False True True False 17 if without else • Take 2: we are not required to have an else part if BOOLEAN EXPRESSION : BLOCK <next statement> • If the Boolean expression is True, the block is executed;...
View Full Document

This document was uploaded on 03/02/2014.

Ask a homework question - tutors are online