Core Differences Between Control Structures
Sequential Control Structure
Selection Control Structure
if
statement to see if a number is positive:
if (number > 0) {
// Do something if true
}
Iteration Control Structure
for
loop can be used to find the total of numbers:Statistics About Control Structures
Core Differences Between Control Structures
Sequential Control Structure
Selection Control Structure
if
statement to see if a number is positive:
if (number > 0) {
// Do something if true
}
Iteration Control Structure
for
loop can be used to find the total of numbers:Statistics About Control Structures