Professional Documents
Culture Documents
NAME: - COURSE/SECTION: - DATE: - Copro1 Quiz #1 - Finals
NAME: - COURSE/SECTION: - DATE: - Copro1 Quiz #1 - Finals
___________
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: