Question: 2. a) [10 pts] Using Java, write a for loop that prints the sentence Repetition is fun! 100 times. Repetition is fun! Repetition is fun!
![2. a) [10 pts] Using Java, write a for loop that](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d1f4d437d_02866f3d1f47f682.jpg)
2. a) [10 pts] Using Java, write a for loop that prints the sentence "Repetition is fun!" 100 times. Repetition is fun! Repetition is fun! Repetition is fun! Repetition is fun! b) [10 pts] Repeat the above problem (3a), but this time make the for loop also print the count of each repetition. The result should look something like this: IS: 1- Repetition is fun! 2 - Repetition is fun! 3- Repetition is fun! 4-Repetition is fun
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
