for example, if the user entered 5 the matrix will like fallowing code but it should be in 1 for language please if anyone now R can help me I\'m a beginner.