previous |
start |
next
Statement Types
- Simple statement
balance = balance - amount;
- Compound statement
if (balance >= amount) balance = balance - amount;
Also while, for, etc. (see chapter 6)
- Block statement
{
double newBalance = balance - amount;
balance = newBalance;
}
previous |
start |
next