16.3k views
3 votes
4. Write a program to calculate square root and
cube root of an entered number .​

User Bedna
by
3.8k points

1 Answer

5 votes

Answer:

DECLARE SUB SQUARE (N)

CLS

INPUT “ENTER ANY NUMBER”; N

CALL SQUARE(N)

END

SUB SQUARE (N)

S = N ^ 2

PRINT “SQUARE OF NUMBER “; S

END SUB

User Avinash Pandey
by
4.3k points