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 display the largest number among any three numbers. (Qbasic Code)

To display the largest number among any three numbers. (Qbasic Code)
  • CLS
    INPUT "Enter the first number"; a
    INPUT "Enter the second number"; b
    INPUT "Enter the third number"; c
    IF a > b AND a > c THEN
        PRINT "The greatest number is "; a
    ELSEIF b > a AND b > c THEN
        PRINT "The greatest number is "; b
    ELSE
        PRINT "The greatest number is "; c
    END IF
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.