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