Function (Recursive & Iterative)
In one of Algorithm Class this last 2-3 weeks, we learnt about function. The point of learning function is basically so that programmer can make a code or simply a sub-program that we can easily call if we have to or wanted to use it. we learnt that sometimes there's a problem that may be or may not be cleared by using a function. Nonetheless we must know what kind of problem is best use using a function or by using just the usual programming method. On the other hand, we have a learnt about recursive and iterative function. Basically recursive function is a function that will call or repeat it's own function to solve a certain problem. While iterative function is creating the usual function without calling it inside the function we are creating. We learnt that we need function in a more difficult task so that we can split up the work in our teams, and to find a more efficient way in our programming to complete the task or problem
Comments
Post a Comment