9.
Write a program in
QBASIC to find the sum of cube of two input
numbers using SUB…..END SUB
DECLARE SUB CUBE (A, B,)
CLS
INPUT “ENTER FIRST NUMBER”; A
INPUT “ENTER SECOND NUMBER”; B
CALL CUBE (A, B)
END
SUB CUBE (A, B)
C = A ^ 3 + B ^ 3
PRINT “SUM OF CUBE OF TWO NUMBERS “; C
END SUB
No comments:
Post a Comment