#include <stdio.h>
int main()
{
int i=0,countl=0,countw=0;
char my1[200],a;
printf("enter sentence ");
gets(my1);
while(my1[i]!='\0')
{
countl++;
if(my1[i]==' ')
countw++;
printf("%c ",my1[i]);
i++;
}
printf("\n no of letter = %d",countl);
countw++;
printf("\n no of words = %d",countw);
return 0;
}