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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!