Columnwise waveprint problem

Is there “space with comma” while printing the elements? When I am giving space and not giving space both are not working

@krishnaSonavane you have taken input as row in m and column in n while in for loop you are using m as column and n as row.