JUNE/MAY2
J 2016 COS1511
newval
n == 2
a == 9
cout
c << fi
indValue(3
3); // 23
, The
T purpos
se : Conti
inue to ad
dd (s) to (n) per loop
l until
l n is gre
eater than
n 5
The
T purpos
se : Conti
inue to in
ncrement (
(c) per lo
oop when the
t a spec
cific
element
e in
n the "num
mbers" arr
ray specif
fied by th
he index variable
v (
(i) is
not
n equal to zero
Question
Q 3 (8marks)
J 2016 COS1511
newval
n == 2
a == 9
cout
c << fi
indValue(3
3); // 23
, The
T purpos
se : Conti
inue to ad
dd (s) to (n) per loop
l until
l n is gre
eater than
n 5
The
T purpos
se : Conti
inue to in
ncrement (
(c) per lo
oop when the
t a spec
cific
element
e in
n the "num
mbers" arr
ray specif
fied by th
he index variable
v (
(i) is
not
n equal to zero
Question
Q 3 (8marks)