This document contains 4 Java exercises. The 4th exercise prints the number 4 repeatedly, dividing it by 2 each time through a for loop with a condition of count being less than or equal to number, initially set to 4, and incrementing count by 1 each iteration. It demonstrates a for loop and modifying a variable within the loop.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
875 views
Java Exercises
This document contains 4 Java exercises. The 4th exercise prints the number 4 repeatedly, dividing it by 2 each time through a for loop with a condition of count being less than or equal to number, initially set to 4, and incrementing count by 1 each iteration. It demonstrates a for loop and modifying a variable within the loop.