[Answer] Find the error and give correct code int number = 1; while (number <= 5) {System.out.print("Square of " + number);

The Question : Find the error and give correct code int number = 1; while (number <= 5) {System.out.print(“Square of ” + number); System.out.println(” = ” + number*number);}

Solution for the question :
Correct code int number = 1; while (number <= 5) {System.out.print("Square of " + number); System.out.println(" = " + number*number); number++; } The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.

Leave a Reply

Your email address will not be published. Required fields are marked *