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

Program to find cube of a number

-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

-Algorithm:

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

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

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


“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

M.Bakhtiar Zuberi
I'm M.Bakhtiar Zuberi, the owner of 3DPixelz.com and its network websites. I've been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL (crypto-currency) and ETC. I love to blog here and write for Tribune in my free time.

Leave a Comment

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