Sum and product of an array: Difference between revisions

Content added Content deleted
m (Moved to Arith cat)
Line 368: Line 368:
x = 1 fby x + 1;
x = 1 fby x + 1;
sum = 0 fby sum + x;
sum = 0 fby sum + x;
product = 0 fby product * x
product = 1 fby product * x
end
end