QBASIC PROGRAM TO FIND VOLUME OF CYLINDER. FUNCTION
DECLARE SUB VOL(R,H)
CLS
INPUT "ENTER RADIUS";R
INPUT "ENTER HEIGHT";H
PRINT "VOLUME OF CYLINDER="VOL(R,H)
END
FUNCTION VOL(R,H)
VOL=22/7*R^2*H
END FUNCTION
Search This Blog
Wikipedia
Search results
Tuesday, October 1, 2019
QBasic program to count total no of vowels in given word. FUNCTION
DECLARE FUNCTION COUNT(N$)
CLS
INPUT "ENTER ANY STRING";N$
PRINT"TOTAL NO OF VOWEL 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
Monday, September 30, 2019
QBasic program to count total no of vowels in given word. SUB
DECLARE SUB COUNT(N$)
CLS
INPUT "ENTER ANY STRING";N$
CALL COUNT (N$)
END
SUB 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
PRINT"TOTAL NO OF VOWEL IS";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 ...