Exercise

Calculating square roots with a while loop

While loops keep running iterations until a condition is no longer met. The syntax for a C++ while loop is the same is in R.

while(condition) {
  // Do something
}

Instructions

100 XP

Specify the while loop, so it keeps iterating while the value of is_good_enough is false.