Exchangeing h and w in the following part of your code should help:ayeshapakhi wrote:i would be very greatful to u if u help me fixing bug.....
i'm getting fed up with continous WA....
ayeshapakhi's main() wrote:......for(i=0; i<=w; i++)......<-- replace with h
......{
.........for(j=0; j<=h; j++)......<-- replace with w
.........{
..............
.........}
......}