#include<stdio.h>
main()
{
char ch[100];
int i;
printf("Enter any string : ");
gets(ch);
i=0;
printf("%c",ch[0]);
while(ch[i]!='\0')
{
if(ch[i]==' ')
{
i++;
printf("%c",ch[i]);
}
i++;
}
printf("\n");
}
You Like It!? Then kindly share with your Friends.