+ 1

Anyone may give the condition to print this output?

010000 101000 010100 001010 000101 000010

14th Feb 2019, 10:35 AM
Shiva sangari.M
Shiva sangari.M - avatar
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.
14th Feb 2019, 11:29 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
Using appropriate output function dont work? Whats the real problem?
14th Feb 2019, 11:08 AM
KrOW
KrOW - avatar