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

To convert decimal number into its equivalent octal number. (Qbasic Code)
  • CLS
    INPUT "Enter decimal number"; a
    WHILE a <> 0
        r = a MOD 8
        a = a \ 8
        b$ = STR$(r) + b$
    WEND
    PRINT "The equivalent octal number is "; VAL(b$)
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.