C # program to print all palindromic paths from top left to bottom right in a grid .
using System ; class GFG { public static bool isPalin ( string str ) { int len = str . Length / 2 ; for ( int i = 0 ; i < len ; i ++ ) { if ( str [ i ] != str [ str . Length - i - 1 ] ) { return false ; } } return true ; }