write a program PrintMatrixLoop.java that performs the following. Ask user to enter the number of rows and
Fantastic news! We've Found the answer you've been seeking!
Question:
"write a" program PrintMatrixLoop.java that performs the following.
Ask user to enter the number of rows and columns of a matrix
Use Loop to print a matrix of randomly generated Xs and Os
Count how many Xs and how many Os generated and print out the counts.
Sample output
Enter number of rows
4
Enter number of columns
3
Matrix
X0X
0XX
0XX
00X
number of Os: 5
number of Xs: 7
Related Book For
Introduction To Java Programming And Data Structures Comprehensive Version
ISBN: 9780136520238
12th Edition
Authors: Y. Daniel Liang
Posted Date: