Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char alt[55], aux[55];
- int main ()
- {
- int n, i, k=0;
- cin.getline(alt, 55);
- n=strlen(alt);
- for (i=0; i<n; i++)
- {
- if (alt[i]>='A' && alt[i]<='Z' || alt[i]>='a' && alt[i]<='z')
- {
- aux[k]=alt[i];
- k++;
- }
- }
- cout<<aux;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment