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
There are no AI answers yet. The ability to request AI answers is coming soon!

Submit Your Answer


We prioritize human answers over AI answers.

If you are human, and you can answer this question, please submit your answer.

Related Questions

Integer Whole Number Counting Number Is traffic a count or non count word? I think its non count. And is highway a count or non count wor... Why did the US declare war on Mexico?(1 point) Responses A) because Mexico invaded Florida A) b... The right to declare war is an example of what type of power? The right to declare war is an example of what type of power? (1 paint) The right to declare war is an example of what type of power? a. concurrent b. reserved c. unit... The right to declare war is an example of what type of power? A. unitary B. enumerated C. con... The right to declare war is an example of what type of power?(1 point) Responses enumerated enu... 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) Responses unitary unitary res...
Submit Your Answer

Question

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

Ask a New Question
Archives Contact Us Privacy Policy Terms of Use