can any one help me in my code
#include <stdio.h> #include <stdlib.h> #include <string.h> int longage2(char phe[ ]){ if (strlen(phe)==1||strlen(phe)%2!=0||phe[strlen(phe)]=='a'){ return 0; } for(int i=0;i<strlen(phe);i++){ if(i%2==0){ if(phe[i]!='a'){ return 0; }}else{ if(phe[i]!='b'){ return 0;}} }return 1;} void longage4(char phe[]){ int a;char ph1[10]; for( int i=0;i<=strlen(phe)-1;i++){ ph1[i]=phe[i]; printf("%d\n",longage2(ph1)); if(longage2(ph1)==1){ a=i; }} printf("a=%d\n",a); char ph2[a]; for(j=0;j<=a;j++){ ph2[j]=ph1[j]; } printf("%s\n",ph2); printf("%d",longage2(ph2)); } int main() {char phe[20]; printf("donnez un mot\n"); scanf("%d",phe); longage4(phe); return 0; }