Solution to Captivating Circles 5

We can simulate the decrease in size for Jack and Jill with the javascript below:

  1. let jack = 1π;
  2. let jill = 2.25π;
  3. while( jack > 0 ) {
  4. jack -= jill * 0.000001;
  5. jill -= jack * 0.000001;
  6. }
  7. console.log(jill);

We will find Jill’s size area to be 6.333 in the console. Divide by π and square root to get Jill’s radius after facing Jack: 1.42.

Leave a Reply