View Code of Problem 43

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	char str[100];
	gets(str);
	
	int len=strlen(str);
	for(int i=0;i<len;i++)
	{
		if(('A'<=str[i]&&str[i]<='Z')||('a'<=str[i]&&str[i]<='z'))
		  cout<<str[i];
	}
	
	cout<<endl;
}

Double click to view unformatted code.


Back to problem 43