TOPIC

wrong error 5% em c

Eraldinho Silva asked 9 months ago

include include include

int main() { int N,h,i,tam,d; char y[52]; scanf("%d", &N); getchar(); while(N>0 && N--){; gets(y); tam=strlen(y); for(i=0;i<=tam;i++){ if(y[i]==' ' && y[i+1]!=' '){ printf("%c", y[i+1]);

   }
   if( i==0 && y[i]!=' '){
    printf("%c", y[i]);
   }
   if(y[i]==' ' && tam==0){

   }
}
    printf("\n");
}

return 0;

}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.