Beruflich Dokumente
Kultur Dokumente
Requirements
Design
Implementing code
Testing implementation
! Logical NOT
&& Logical AND
|| Logical OR
DONT
DO
Example
Num += count
Equivalent To
Num = num +
count
DO everything in the right side first , then the result is
combined with the original variable
If += are strings, then you should slide them together to get
a string
Repetition Statements- allows us to execute a statement
multiple times
The two types are
o The while loop
While (condition)
statement;
o If the condition is true, you keep going in the condition
until its false
o Infinite loops will eventually make the condition false
o Must make sure your program terminated normally
o The for loop
The While Loop:
The for statement- has the following syntax: