Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

To find the cube of all the digits of the given number. (Qbasic Code)

To find the cube of all the digits of the given number. (Qbasic Code)
  • CLS
    INPUT "Enter a number"; n
    WHILE n <> 0
        r = n MOD 10
        p = r ^ 3
        n = n \ 10
        PRINT "The cube of the digit"; p
    WEND
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.