Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

Example: FUNCTION Procedure

The Syntax of FUNCTION Procedure is:
            FUNCTION Name (parameters)
                      Statements
                      Name=expression
            END FUNCTION

Example:
A program to find area of rectangle
DECLARE FUNCTION area (l, b)
CLS
PRINT area(l, b)
END

FUNCTION area (l, b)
INPUT "Enter length of rectangle"; l
INPUT "Enter breadth of rectangle"; b
a = l * b
area = a
END FUNCTION

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.