View Code of Problem 43

#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int main(){
	double a,b,c,x,y;
	int len;
	char str1[100];
	while(scanf("%s",str1)!=EOF){
		len=strlen(str1);
		for(int i=0;i<len;i++){
			if((str1[i]>='a'&&str1[i]<='z')||(str1[i]>='A'&&str1[i]<='Z')){
				printf("%c",str1[i]);
			}
		}
		printf("\n");
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 43