plz correect the code
RUn time ERROR my o/p is coming correct thrn also
while(f<n)
{
if(f%2==0)
{
for(int i=0;i<m;i++)
{
System.out.print(a[i][f]+", ā);
}
}
else
{
for(int i=m-1;i>=0;iā)
{
System.out.print(a[i][f]+ā, ");
}
}
f+=1;
}
you move the i loops for m not n