View Code of Problem 43

#include<stdio.h>
#include<string.h>
int isLetter(char c);
int main()

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

Double click to view unformatted code.


Back to problem 43