You are on page 1of 2

NAME: __________________________________ COURSE/SECTION: ____________DATE:

___________
COPRO1
QUIZ #1 FINALS
Construct a for loop based on the table below. Determine the output:
Variable name
Variable type
Initialization
Condition
Increment
Statement

Codes:

num
int
Variable is equal to
1
Variable is less than
or equal to 7
Increment the value
of the variable by 1
Display/print the
value of the variable
Output:

You might also like