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
Hello, I'm M.Bakhtiar Zuberi, the only article poster & owner of this website. Your comments/suggestions are welcomed the most! RajasTutorials.com is a part of 3DPixelz.com network.

Leave a Comment

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