Data update
This commit is contained in:
parent
157b70a810
commit
8e4e15fa56
78 changed files with 2016 additions and 222 deletions
|
|
@ -1,5 +1,7 @@
|
|||
Module MultipleLoop {
|
||||
def long prod=1, sum=0, x=+5,y=-5, z=-2, one=1, three=3, seven=7, j
|
||||
long sum=0, x=+5,y=-5, z=-2, j
|
||||
double prod=1
|
||||
const one=1&, three=3&, seven=7&
|
||||
Range=lambda (a, b, c=1) ->{
|
||||
=lambda a, b, c (&f)-> {
|
||||
if compare(a,b)=sgn(c) then =false else =true: f=a: a+=c
|
||||
|
|
@ -13,13 +15,15 @@ Module MultipleLoop {
|
|||
k++ : always
|
||||
}
|
||||
}
|
||||
Exec=MultipleRange(Range(-three, 3**3, three), Range(-seven, +seven, x), Range(555, 550-y), Range(22, -28, -three), Range(1927, 1939), Range(x,y,z), Range(11**x, 11**x+one))
|
||||
flush
|
||||
data Range(-three, 3**3, three), Range(-seven, +seven, x), Range(555, 550-y), Range(22, -28, -three)
|
||||
data Range(1927, 1939), Range(x,y,z), Range(11**x, 11**x+one)
|
||||
Exec=MultipleRange(![])
|
||||
j=0
|
||||
while Exec(&j)
|
||||
sum+=abs(j)
|
||||
if abs(prod) < 2^27 And j <> 0 then prod*=j
|
||||
End While
|
||||
|
||||
Print "sum=";sum
|
||||
Print "prod=";prod
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue