+ 8
Challenge
Sample I/p - 4(size of sq. pattern) 5&@(Enter any 3 characters) Sample Output :- @ 5 5 @ & @ @ & & @ @ & @ 5 5 @ 5 - It fills the upper & lower portion diagonals & - It fills the left & right portion of diagonals @ - It fills both the diagonals of square. Write a program to generate this pattern , try to keep the complexity as less as possible.
4 Answers
+ 5
Nice challenge:
https://code.sololearn.com/cDC4MjcL7JGc/?ref=app
+ 6
https://www.sololearn.com/discuss/1082512/?ref=app
+ 3
+ 2
https://code.sololearn.com/ctWq5TKB0u1Z/?ref=app