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

Connected

अभ्यास

Build a while loop from scratch

The previous exercises guided you through developing a pretty advanced while loop, containing a break statement and different messages and updates as determined by control flow constructs. If you manage to solve this comprehensive exercise using a while loop, you're totally ready for the next topic: the for loop.

निर्देश

100 XP

Finish the while loop so that it:

  • prints out the triple of i, so 3 * i, at each run.
  • is abandoned with a break if the triple of i is divisible by 8.