Site icon Pathshala Nepal

Write a program using SUB…..END SUB to get the radius of the circle and then print its area.

Q BAISC OS
Online Calculator

Write a program using SUB.....END SUB to get the radius of the circle and then print its area.


1 Answer


DECLARE SUB AREA (R)
CLS
INPUT "ENTER A RADIUS"; R
CALL AREA (R)
END

SUB AREA (R)
P = 22/7
A = P * T * R
PRING "AREA OF CIRCLE"; A
END SUB

Topics from Computer
Related Questions