#include <stdio.h>
#include <stdlib.h>
#include<string.h>
int main(int argc, char *argv[])
{
char s[100];
int i,n,j;
gets(s);
n=strlen(s);
for(i=0;i<n;i++)
{
if(s[i]!=' ')
break;
else
{
for(j=i;i<n;j++)
{
s[j]=s[j+1];
}
i--;
}
}
printf("Chuoi la:%s %d",s,strlen(s));
return 0;
}
Em đang viết xóa khoảng trắng ở đầu chuỗi nhưng chạy chưa đúng mọi người coi dùm em cái