Q BASIC PROGRAM TO PRINT 1,1,2,3,5,8........UP TO TEN TERM. SUB
DECLARE SUB SERIES()
CLS
CALL SERIES
END
SUB SERIES ()
A=1
B=1
FOR I = 1 TO 5
PRINT A
PRINT B
A=A+B
B=A+B
NEXT I
END SUB
Search This Blog
Wikipedia
Search results
Tuesday, October 1, 2019
QBasic program to count total no of consonant in given word. FUNCTION
DECLARE FUNCTION COUNT(N$)
CLS
INPUT "ENTER ANY STRING";N$
PRINT"TOTAL NO OF CONSONANT IS";COUNT(N$)
END
FUNCTION COUNT(N$)
C=0
C=0
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 C<>C+1
NEXT I
COUNT=C
COUNT=C
END SUB
Subscribe to:
Posts (Atom)
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...
-
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...
-
Janai Purnima Janai Purnima is a Hindu festival celebrated all over the country. It is the day when people get chance to change old ...
-
QBASIC PROGRAM TO FIND REVERSE OF THE STRING .SUB DECLARE SUB REV(N$) CLS INPUT "ENTER A WORD ";N$ CALL REV (N$) END ...