Functions: by Jeannie Francis
Functions: by Jeannie Francis
By Jeannie francis
FUNCTIONS???
The Function statement is used to declare the name, parameter and the body of a function. The syntax
for the Function statement is:
Syntax:[Modifiers] Function FunctionName [(ParameterList)] As ReturnType [Statements] End Function
Terms
Modifiers: specify the access level of the function; possible values are: Public, Private, Protected,
Friend, Protected Friend and information regarding overloading, overriding, sharing, and shadowing.
FunctionName: indicates the name of the function
ParameterList: specifies the list of the parameters
ReturnType: specifies the data type of the variable the function returns
Returning a value
RECURSIVE FUNCTION
A function can call itself. This is known as recursion. Recursionis a
programming technique that allows the programmer to express
operations in terms of themselves. In cb.net, this takes the form of
a functionthat calls itself. A useful way to think ofrecursive
functionsis to imagine them as a process being performed where
one of the instructions is to "repeat the process".
PROGRAM
1.Program for table:-