else if(a[i][j]==’#’)
{
n=n+1; // WHY YOU HAVE USED THIS,HOW CAN YOU INCRESE n IT SHOULD HAVE BREAK STATEMENT BECAUSE HE WILL JUMP TO NEXT ROW
}
PIYUSH AND PARK Not able to understand if he encounters # it should have a break statement
No it was given to my after modification of my code by another person whom I asked this question on this platform
@dsingh200021 hey darshpreet the person who modified the code eariler they should use break it writes multiple statement for termination this is the right approach follow this link if any queries comes do ask.