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 

To find the area of rectangle (using SUB procedure) (Qbasic Code)

  • To find the area of rectangle (using SUB procedure) (Qbasic Code)
  • DECLARE SUB area(l,b)
    CLS
    INPUT "Enter the lenght of rectangle"; l
    INPUT "Enter the breadth of rectangle"; b
    CALL area(l, b)
    END

    SUB area (l, b)
    a = l * b
    PRINT "The area of rectangle is"; a
    END SUB
See Also
Using FUNCTION Procedure (View)

Share :

X
Back To Top

facebook main

Powered by Blogger.