# print only vowels from a given word. (sub)


DECLARE SUB DISP(N$)
CLS
INPUT "Enter any word";N$
CALL DISP(N$)
END

SUB DISP(N$)
FOR I =1 TO LEN (N$)
B$=MID$(N$,I, 1)
C$=UCASE$(B$)
IF C$="A" OR C$="E" OR C$="I" OR C$="O" OR C$="U" THEN V$=V$+B$
NEXT I
PRINT "Vowel";V$
END SUB


Comments

Popular posts from this blog