String programming with qbasic

Observe the following coding in qbasic and find the output if A$="RAM IS GOOD" ---

  A$=A$+" "
    L=LEN(A$)
    FOR I= 1 TO L
       B$=MID$(A$,I,1)
        IF B$<>" " THEN
        C$=B$+C$
        ELSE
        D$=D$+C$+" "
        C$=""
        END IF
      NEXT I
      PRINT "out put :-  ";D$

[ Hint:- log on to comprogzz.in then select "Programs on qbasic" option then select "String programs " option then find the program number 11 ]

DOOG SI MAR MAR SI DOOG R I G GOOD IS RAM

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...