View Code of Problem 43

#include <stdio.h>
#include <string.h>
int main()
{
	char c;
	char a[90];
	int i=0;
	while(scanf("%c",&c),c!='\n')
	{
		if(!((c<'A')||(c>'z')||(c>'Z'&&c<'a')))
		{
			a[i]=c;
			i++;
		}
	}
	a[i]='\0';
	for(i=0;i<strlen(a);i++)
		printf("%c",a[i]);
	return 0;

}

Double click to view unformatted code.


Back to problem 43