Skip to content

section6_exercises

Fábio Gaspar edited this page Jan 18, 2019 · 1 revision

Exercises

  1. Write a function that tells wether a number is even or odd
Number ? 5
The entered number is odd.
  1. Write a recursive function to compute the factorial of any given number
Number ? 5
Factorial: 120