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 convert octal number into its equivalent decimal number. (Qbasic Code)

To convert octal number into its equivalent decimal number. (Qbasic Code)
  • CLS
    INPUT "Enter octal number"; n
    WHILE n <> 0
        r = n MOD 10
        d = d + r * 8 ^ p
        p = p + 1
        n = n \ 10
    WEND
    PRINT "The equivalent decimal number is "; d
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.