Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

To find out the smallest number among any three numbers. (Qbasic Code)

To find out the smallest 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 smallest number is "; a
    ELSEIF b < a AND b < c THEN
        PRINT "The smallest number is "; b
    ELSE
        PRINT "The smallest number is "; c
    END IF
    END

Share :

X
Back To Top

facebook main

Powered by Blogger.