View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43