View Code of Problem 43

#include<stdio.h>
#include<string.h>
int main() {
	char str[100] ;
	int len,i,j;
	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]);
	 }
	 printf("\n");
		return 0;
	}

Double click to view unformatted code.


Back to problem 43