- 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

25th May 2021, 4:08 PM
Anthony Asiimwe
Anthony Asiimwe - avatar
3 Respostas
+ 2
On Line 27 you have again printed the same value so you should just print a new line.
25th May 2021, 4:18 PM
Eashan Morajkar
Eashan Morajkar - avatar
25th May 2021, 4:17 PM
Eashan Morajkar
Eashan Morajkar - avatar