View Code of Problem 43

#include<iostream>

using namespace std;

int main(){
	string s;
	cin>>s;
	char c[90];
	int count=0;
	for(int i=0;i<s.length();++i){
		if(isalpha(s[i])){
			c[count++]=s[i];
		}
	}
	for(int i=0;i<count;++i){
		cout<<c[i];
	}
	return 0;
} 

Double click to view unformatted code.


Back to problem 43