Arrays-wave print column wise

My output coming right but compiler shows wrong ans

who will help i am waiting from 30 min