0

Please can u help me? C ++

Your task is to write a program that will fill a matrix NxN with ones and zeros in spiral mode (starting from top left corner,look at the example). Input One line contains only one odd number N (1 <= N <= 50) Output Output the matrix filled with ones and zeros placed in spiral mode. Samples: № Input Output 1 7 1111111 0000001 1111101 1000101 1011101 1000001 1111111

3rd Oct 2020, 4:57 PM
Altyn
3 Answers
0
Here, let me know if there is a problem: https://code.sololearn.com/cDBq5MEvZjQ7/#cpp Now come the dislikes...
4th Oct 2020, 1:01 AM
Edward Finkelstein
Edward Finkelstein - avatar
0
wrong answer(
4th Oct 2020, 8:34 AM
Altyn
0
Altyn why?
4th Oct 2020, 3:15 PM
Edward Finkelstein
Edward Finkelstein - avatar