View Code of Problem 43

# include<stdio.h>
# include<string.h>
int main(void)
{
  char a[90] = {0};
  char b[90] = {0};
  int i,count = 0;
  gets(a);
  for(i=0;i<90;++i)
  {
	  if((a[i]>='a'&&a[i]<='z')||(a[i]>='A'&&a[i]<='Z'))
	{
	  b[count++] = a[i];
	}
  }
  for(i=0;i<count;++i)
  {
	 printf("%c",b[i]);
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 43