Introduction to Functions
This lesson introduces you to an important concept, functions.
What Is a Function?
A function is a block of code that can be reused. It is used to perform some specific tasks.
-
mainFunctionThe simplest possible function that we have studied so far is the
mainfunction that is declared withfnkeyword. This is where the program execution starts.However, it is possible to define a user-defined function.
-
User-defined Functions
The functions that are customized ...
Ask