Lesson 14: Coding Practice — Control Structures

Using Input, Output, Mathematical and Assignment Operators

Write source code that makes use of input, output, mathematical and assignment operators to solve a given problem.

Using Selection Control Structures

Write source code that makes use of selection control structures to choose between alternative paths based on a condition.

Using Multiple Selection Control Structures

Write source code that makes use of multiple selection control structures, such as if-else, switch, and nested if statements.

Using Definite Iterative Control Structures

Write source code that makes use of definite iterative control structures, such as a for loop.

Using Indefinite Iterative Control Structures

Write source code that makes use of indefinite iterative control structures, such as a while loop:

int i = 0;
while (i < 5) {
  printf("Hello, world!");
  i++;
}

Leave a comment

Your email address will not be published. Required fields are marked *

sponsors Ads