Skip to content

Instantly share code, notes, and snippets.

@usagi
Created March 27, 2012 03:19
Show Gist options
  • Save usagi/2212195 to your computer and use it in GitHub Desktop.
Save usagi/2212195 to your computer and use it in GitHub Desktop.
var month = 0;
var number_of_pairs = 1;
var before_number_of_pairs = 0;
while (month < 12) {
var b = number_of_pairs;
number_of_pairs
= number_of_pairs
+ before_number_of_pairs;
before_number_of_pairs = b;
month = month + 1;
console.log("month : " + month);
console.log("pairs : " + number_of_pairs);
console.log("before: " + before_number_of_pairs);
console.log();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment