QBasic programs collection-Especially for SEE (Grade-10)
QBasic program to know the output of program using dry run table- to count total words.
output:
S$ |
Count |
I= 1 to
len(s$)[17] |
Mid$(s$,I,1)=
“ “ |
|
Hello how
are you? |
1 |
I=1 |
No upto
five times |
|
|
|
I=6 |
Yes,
count=2 |
|
|
|
I=7/8/9 |
no |
|
|
|
I=10 |
Yes,
count=3 |
|
|
|
I=11/12/13 |
no |
|
|
|
I=14 |
Yes,count=4 |
|
|
|
I=15/16/17 |
no |
|