Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 Re: Puzzles and Games » Starter puzzle on this site "12 Days Of Christmas" » 2016-06-07 20:15:02

Hi,

And if you want, you can try making a little program smile and modify it

(JavaScript)
var x = 1;
var y = 2;
var days = 1;
var PresentsPerDay = 0;

while (days < 13){
  PresentsPerDay=x+PresentsPerDay;
  x=x+y;
  y++;
  days++;

Board footer

Powered by FluxBB