practice_C

Functions

Exercises

  1. Calculate the power of a number using a function.
  2. Calculate the factorial of a number using a function.
  3. Check whether a number is prime using a function.
  4. Swap two values using a function.

Click here for explanation and solution.