1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Probability Puzzles in R

Connected

अभ्यास

Simulate the factorable probability

Now we will use the is_factorable function that we wrote in the previous exercise to check factorability of many quadratics.

Specifically, we will check every combination of a, b and c where each value is between 1 and 100, using a nested for loop.

निर्देश

100 XP
  • Write a nested for loop, to loop each of a, b, and c from the values 1 through 100.
  • For each combination of a, b and c, check whether the quadratic is factorable.