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 check the given input is alphabet or number of special character. (Qbasic Code)

To check the given input is alphabet or number of special character. (Qbasic Code)
  • CLS
    INPUT "Enter any input"; ch$
    ch$ = LCASE$(ch$)
    IF ch$ >= "0" AND ch$ <= "9" THEN
        PRINT "The input is number"
    ELSEIF ch$ >= "a" AND ch$ <= "z" THEN
        PRINT "The input is alphabet"
    ELSE
        PRINT "The input is special character"
    END IF
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.