Computer Science, asked by vaishvaibhav28, 1 month ago

Question 3
Given a square matrix M [] of order 'n'. The maximum value possible for 'n' is 10. Accept three different
characters from the keyboard and fill the array according to the instruction given below.
Fill the upper and lower elements formed by the intersection of the diagonals by character 1.
Fill the left and right elements formed by the intersection of the diagonals by character 2.
Fill both the diagonals by character 3.
Output the result in format given below:
Example 1
ENTER SIZE : 4
INPUT: FIRST CHARACTER :
SECOND CHARACTER :'?'
THIRD CHARACTER : #
OUTPUT:
# * * #
? # # ?
? # # ?
Example 2
ENTER SIZE : 5
INPUT: FIRST CHARACTER :$'
SECOND CHARACTER : !
THIRD CHARACTER : @
OUTPUT:
@$$$
! @S@
! S @
@$$$
Example 3
ENTER SIZE : 65
OUTPUT : SIZE OUT OF RANGE​

Answers

Answered by bhart39
0

HI BRO LOVE YOU FROM BANGLADES... PLEES MARK ME AS BRILENT ANS

Similar questions