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 remove the vowels from the word and display the word without the vowels. (Qbasic Code)

To remove the vowels from the word and display the word without the vowels.

  • CLS
    INPUT "Enter the string"; a$
    b$ = LCASE$(a$)
    FOR i = 1 TO LEN(b$)
        c$ = MID$(b$, i, 1)
        IF c$ <> "a" AND c$ <> "e" AND c$ <> "i" AND c$ <> "o" AND c$ <> "u" THEN
            d$ = d$ + c$
        END IF
    NEXT i
    PRINT "The word without the vowels is "; d$
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.