You provide test cases using functions and arrays and some simple cases. Because the way function is handled in the grammar, it is difficult to give a common test case.

  1. Function to return fatorials and the main program calls this function for n = 8 and 10 and prints the output
  2. Print iterative fibonacci function to calculate f_n and print for n = 10
  3. Collatz problem - this is recursive - whether the function works
  4. Write a function to sum an array of n elements - print the value of sum in the main