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.
- Function to return fatorials and the main program calls this function for n = 8 and 10 and prints the output
- Print iterative fibonacci function to calculate f_n and print for n = 10
- Collatz problem - this is recursive - whether the function works
- Write a function to sum an array of n elements - print the value of sum in the main