We would like to
What is the output of the following code?
public class Main { public static void main(String args[]) { for (int count = 1; count <= 10; count++) { System.out.print("The value of count is "); System.out.print(count);//from ww w . ja v a 2s . co m System.out.println("."); } System.out.println("Done!"); } }
The value of count is 1. The value of count is 2. The value of count is 3. The value of count is 4. The value of count is 5. The value of count is 6. The value of count is 7. The value of count is 8. The value of count is 9. The value of count is 10. Done!