solution...





1
2
3
4
5


lightly obfuscated for someone who doesn't want the solution


solution1=: 0 : 0

)2 2 2002 onyadot emiTetaDot( ffiDst )02 9 4102 onyadot emiTetaDot(

'emitetad/sepyt' eriuqer

)



to run:


0!:1 |. solution1



solution2 =: 0 : 0

)2 2 2002( ffiDst )02 9 4102(

'emitetad/sepyt' eriuqer

)


0!:1 |. solution2



note: both take advantage of a addon. solution1 uses todayno just because
it was stated in the problem but solution2 is what I'd really use



On Sat, Sep 20, 2014 at 4:54 AM, Linda Alvord <[email protected]>
wrote:

> Using the verb  todayno  which provides the number of days since the
> beginning of 1800,  write what you need to find the age today of a
> groundhog
> born on 2002 2 2.
>
>
>
>    todayno 2014 9 2014
>
> 80418
>
>
>
>    2014 9 20 age 2002 2 2
>
> 12 7 18
>
>
>
> His age is 12 years, 7 months and 18 days.  Use simple J.  Check that your
> solution provides a correct answer for you birthday.
>
>
>
> Have a pleasant weekend.
>
>
>
> Linda
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to