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 input 10 numbers into an integer array and display the number of odd and even (Qbasic Code)

To input 10 numbers into an integer array and display the number of odd and even (Qbasic Code)
  • CLS
    FOR i = 1 TO 10
        INPUT "Enter the numbers"; n
        IF n MOD 2 = 0 THEN
            e = e + 1
        ELSE
            o = o + 1
        END IF
    NEXT i
    PRINT "The number of even number is "; e
    PRINT "The number of odd number is "; o
    END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.