View Code of Problem 43

# include<stdio.h>
int main(void)
{
  char a[90] = {0};
  char b[90] = {0};
  int i,count = 0;
  while(scanf("%s",a)!=EOF)
  {
	  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\n",b[i]);
	  }
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 43