View Code of Problem 43

#include<stdio.h>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
typedef long long ll;
int main(){
    string c;
    cin>>c;
    for(int i=0;i<c.length();i++){
      if(((c[i]>='A')&&(c[i]<='Z'))||((c[i]>='a')&&(c[i]<='z')))
      cout<<c[i];
	}
	printf("\n");
    
	  return 0;
}

Double click to view unformatted code.


Back to problem 43