Search This Blog

Wikipedia

Search results

Tuesday, October 1, 2019

Q BASIC PROGRAM TO PRINT ONLY VOWELS FROM A GIVEN WORD. SUB

DECLARE  SUB DISP(N$)
CLS
INPUT "ENTER ANY STRING";N$
CALL DISP(N$)
END

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

No comments:

               Journey of Jagat Mandir H. S. School When I was at the age of three I joined the school in the village. When I came to K...