View Code of Problem 43

#include<bits/stdc++.h>
using namespace std;
int main(){
	char c[1000];
	gets(c);
	for(int i = 0;i<strlen(c);i++){
		if(c[i]>='a'&&c[i]<='z' ||c[i]>='A'&&c[i]<='Z')cout<<c[i];
	}
	return 0;
} 

Double click to view unformatted code.


Back to problem 43