• + 0 comments

    Scanner sc=new Scanner(System.in); String a=sc.next(); String b; int l=a.length(); int c=0; for(int i=0;i=2 { String r=new StringBuffer(b).reverse().toString(); if(r.equals(b)) c++; } } } System.out.println(c) } }