CAPE Computer Science Unit 1 · 2013 · Paper 2 · Question 5(d)
Write a program that prompts the user to enter an integer r and prints r!, where 0! = 1 and r! = r(r-1)(r-2)...1 for r > 0.
The mark scheme is shown once you've answered.
Practise this question