Create a java application uses for loop


Discuss the following:

Q: Create a java application that uses for loop, while loop, or do-while loop to print a square which has 10 X 10 lines of #, except lines 2, 4, and 6 which consist of * instead of # . Therefore the final output will look like this:

##########
**********
##########
**********
##########
**********
##########
##########
##########
##########

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a java application uses for loop
Reference No:- TGS01934274

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)