View previous topic :: View next topic
|
Author |
Message |
ankurbhavsar
New User
Joined: 21 Jun 2006 Posts: 1
|
|
|
|
i have been asked a question " that is i have a number that is 3421 or any four digit number i want my out put as 3 , 4 , 2 , 1 separetly but you should not implement any logic in procedure division not even refrence modification " i hope its clear check out and hel;p every one out here |
|
Back to top |
|
|
Aji
New User
Joined: 03 Feb 2006 Posts: 53 Location: Mumbai
|
|
|
|
Hi
Have a look at the following code.
working-storage section.
01 a pic 9(04) value 1234.
01 b pic 9,9,9,9.
procedure division.
p1.
move a to b.
display b.
stop run.
Aji Cherian |
|
Back to top |
|
|
|