A software is to be developed for a system which has a small memory. The software should avoid using recursion and not use macros instead of functions.