write a program in qbasic : Accept two numbers and display its square
Answers
Answered by
0
Answer:
QBasic Programming
REM PROGRAM TO DISPLAY SUM OF SQUARE OF ANY TWO INPUT NUMBERS. CLS. INPUT “ENTER FIRST NUMBER”; A. ...
DECLARE SUB SQUARE (A, B) CLS. INPUT “ENTER FIRST NUMBER”; A. ...
SUB SQUARE (A, B) S = A ^ 2 + B ^ 2. ...
DECLARE FUNCTION SQUARE (A, B) CLS. ...
FUNCTION SQUARE (N) SQ= A ^ 2 + B ^ 2.
Similar questions