RosettaCodeData/Task/Trabb-Pardo-Knuth-algorithm/APL/trabb-pardo-knuth-algorithm.apl

12 lines
407 B
APL
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
{res}Trabb;f;S;i;a;y ⍝ define a function Trabb
f{(0.5*|)+5×*3} ⍝ define a function f
S,{ ()}'Please, enter 11 numbers: '
:For i a :InEach (S)(S) ⍝ loop through N..1 and reversed S
:If 400<yf(a)
'Too large: ',i
:Else
i,y
:EndIf
:EndFor