R Program to print matrix on the console

Program

A = matrix (c(2 , 4, 3, 1, 5, 7), nrow =2, ncol =3, byrow = TRUE)
print(A)

Output

[,1] [,2] [,3]
[1,]    2    4    3
[2,]    1    5    7