Monday, September 30, 2019

Print total no of vowel in 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$)
IFC$<>"A"ANDC$<>"E"ANDC$<>"I"ANDC$<>"O"AND C$<>"U"THEN U$=U+B$
NEXT IPRINT"VOWEL";V$
END SUB

1 comment:

  1. 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$)
    IFC$<>"A"AND C$<>"E"AND C$<>"I"AND C$<>"O"AND C$<>"U"THEN C = C + 1
    NEXT I
    PRINT"Total No. of Vowels = ";C
    END SUB

    ReplyDelete

Experience of covid-19 and cancelling SEE exam

A dangers virus called corona also know as COVID-19 took place around the world. This virus was first found in Wuhan china.this virus start...