View Code of Problem 43

#include <stdio.h>
#include <string.h>

int main ()
{
	int maxn = 90+10;
	char s [maxn];
	scanf("%s",s);
	int len = strlen(s);
	for(int i=0;i<len;++i)
	{
		if((s[i]<='z'&&s[i]>='a')||(s[i]<='Z'&&s[i]>='A'))
		 printf("%c",s[i]);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 43