Program to find cube of a number – GW-BASIC Tutorials

Program to find cube of a number

[xyz-ihs snippet=”Google-Adsense”]

-Program:

10 REM Program to find cube of a number in GW-BASIC
20 INPUT “Enter the number of which you want to find the cube: ” ; X
30 LET CUBE = X^3
40 PRINT “Cube of the given number is: ” ; CUBE
50 END

[xyz-ihs snippet=”200-x-90″]

-Algorithm:

STEP 1 START
STEP 2 INPUT X
STEP 3 COMPUTE CUBE = N^3
STEP 4 PRINT CUBE
STEP 5 END

[xyz-ihs snippet=”200-x-90″]

Program (with Output) to find cube of any input number

Program (with Output) to find cube of any input number

[xyz-ihs snippet=”200-x-90″]


“My posts/articles are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: