View Code of Problem 43

#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<string>
using namespace std;
int main()
{
	char s[90],s1[90];
	std::cin >> s;
	
	int len = strlen(s);
	int j = 0;
	for (int i = 0; i < len; i++) {
		if ((s[i] >= 'a'&&s[i] <= 'z')||(s[i]>='A'&&s[i]<='Z') ){
			putchar(s[i]);
		}
	}
}

Double click to view unformatted code.


Back to problem 43