‹ Back to the paper
Question 3(i)
1 mark
Computer ScienceISC 2018 Computer Science Paper 1Short answerImplementation of algorithms to solve problems
Fill in the blanks marked ?1?, ?2? ... so that the code works.
What is the statement or expression at ?1?
Answer
Answer
$?1? = 0$ - rev is initialised to 0 before the reversed digits are accumulated into it.