Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started