Quelpr

CAPE Computer Science Unit 2 · 2006 · Paper 1 · Question 10(a)

Write algorithms to output all odd numbers from 1 to 100 inclusive.

Write an algorithm to solve this problem using bounded iteration.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 10(b)Write an algorithm to solve this problem using unbounded iteration.[5 marks]

More practice: the rest of this paper · more Implementation, Testing, and Maintenance questions · all CAPE Computer Science Unit 2 past papers