- 1
This is a question from C++ multidimensional arrays practice that I can't crack at the moment. Please help.
You are a movie theater manager. You are given a two-dimensional array with 6 rows and 6 columns - 36 elements with 0 value, that represent empty theater seats. All 36 tickets for session were sold, so you need to identify all of the seats with value 1. Write a program that replaces all 0 values in the given array by 1 and outputs the resulting matrix. https://code.sololearn.com/c1eIZ6J4P5Fv/?ref=app
3 Answers
+ 2
On Line 27 you have again printed the same value so you should just print a new line.