View previous topic :: View next topic
|
Author |
Message |
itdsen
New User
Joined: 20 Sep 2006 Posts: 23 Location: Chennai
|
|
|
|
following is my input file
senthil
kumar
i wants o/p file as
s e n t h i l
k u m a r.
Give me a sample program. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
That's very nice. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
itdsen wrote: |
following is my input file
senthil
kumar
i wants o/p file as
s e n t h i l
k u m a r.
Give me a sample program. |
Don't demand.
Simple loop with move and reference modification.
I shouldn't do this but here goes.
Code: |
move spaces to target.
perform varying x from 1 by 1 until x > length of source
move source (x : 1) to target ((x * 2) - 1 : 1)
end-perform
|
|
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Craq - getting weak. Friday, right? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Phrzby Phil wrote: |
Craq - getting weak. Friday, right? |
Yes it's been a long week and I'm getting weak in my old age. |
|
Back to top |
|
|
|