Multi line input

How can we get the input in the form of a matrix?
i am only able to get the 1st row as the input