Scroll to see replies
multby3(n) {
// base case
if n = 0 {
output 0 and exit
}
// n > 0
output multby3(n-1) + 3
}
multby3(n) {
// base case
if n = 0 {
output 0 and exit
}
// n > 0
output multby3(n-1) + 3
}
def timesby3(b):
if b == 0:
return 0
return 3 + timesby3(b-1)
print timesby3(12)
def timesby3(b):
if b == 0:
return 0
return 3 + timesby3(b-1)
print timesby3(12)
Last reply 3 days ago
Did Cambridge maths students find maths and further maths a level very easy?Last reply 2 weeks ago
Edexcel A Level Mathematics Paper 2 unofficial mark scheme correct me if wrong71
Last reply 3 days ago
Did Cambridge maths students find maths and further maths a level very easy?Last reply 2 weeks ago
Edexcel A Level Mathematics Paper 2 unofficial mark scheme correct me if wrong71