Factorial

So far you've learned:

  • How to define a function
  • How to call a function
  • Which integer types are available in Rust
  • Which arithmetic operators are available for integers
  • How to execute conditional logic via comparisons and if/else expressions

It looks like you're ready to tackle factorials!

Exercise

The exercise for this section is located in 02_basic_calculator/05_factorial