To Find Sum of Any Three Numbers (Using FUNCTION Procedure) (Qbasic)

To Find The Sum of Any Three Numbers (Using FUNCTION Procedure) (Qbasic)
  • Using Function Procedure
    DECLARE FUNCTION sum (a, b, c)
    CLS
    INPUT "Enter the first number"; a
    INPUT "Enter the second number"; b  
    INPUT "Enter the third number"; c
    PRINT "The sum of the numbers is"; sum(a, b, c)
    END

    FUNCTION sum (a,b,c)
    s = a + b + c
    sum = s
    END FUNCTION
  • See Also

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.