+ 1
Anyone may give the condition to print this output?
010000 101000 010100 001010 000101 000010
2 Answers
+ 16
By seeing this binary type pattern, I think you want to print a square matrix, where you want to replace "0" in 2 lines parallel & closest to principal diagonal by "1"
â For that |row_number - column_number|=1 must be the appropiate condition to identify elements of those 2 second largest diagonals.
+ 2
Using appropriate output function dont work? Whats the real problem?