Question :

I have a question for you in J.

How do you write the following simple APL program in J

[1] "Enter a series of numbers"

[2] num <- quad

[3] total <- +/num

[4] "the total of the series is",total

I would appreciate a reply.

I can not understand why J does not

program as easily as APL.

----------------------- Answer :

read=: 3 : 0

1!:2&2 y.

1!:1[1

)

testread=: 3 : 0

a=:read 'Enter a series of numbers'

'the total of the series is ',": +/ ".a

)

testread''

Enter a series of numbers

2 3 4 5

the total of the series is 14

J programs a little bit differently than other APL:s

Once you learn how to use it you will find that it

programs even better than other APL:s

/Gosi