Wave print column wise

I have written the code, but some coditions are missing it will be very helpful if the you specify the error in the code. so i can work on that

Pranav, pls send your code by saving on ide so that I could check it.