Calculating the Nth Tetrahedral Number

# Introduction In this lab, you need to write a function called `calc_tetrahedral_number()` that takes an integer `n` as input and calculates the `n`th tetrahedral number using the formula `(n * (n + 1) * (n + 2)) / 6`, returning the result.

|
60 : 00

Click the virtual machine below to start practicing