Ask a New Question

Asked by John

Declare Integer count
For count=1 to 3 Step 2
Display count
End For
What would the output be?
9 years ago

Answers

Answered by Steve
well, just follow the loop.

On entry, count=1
next iteration: count steps up by 2, so count=3
next iteration: count=5, so exit

so, the output is
1
3
9 years ago

Related Questions

Is traffic a count or non count word? I think its non count. And is highway a count or non count wor... Who may declare war? A. President B. House of Representatives C. Senate... The right to declare war is an example of what type of power?(1 point) Responses unitary unitary res... The right to declare war is an example of what type of power?(1 point) Responses concurrent con... The right to declare war is an example of what type of power?(1 point) Responses reserved reserved c... The right to declare war is an example of what type of power?(1 point) unitary unitary enumerated e... The right to declare war is an example of what type of power?(1 point)%0D%0AResponses%0D%0A%0D%0Auni... the right to declare war is an example of what type of power? A. reserved B. unitary C. enumera... The right to declare war is an example of what type of power?(1 point) Responses enumerated enu... Integer Whole Number Counting Number
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use