Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Varianta 58, Subiect 2, Exercitiu 5
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[100], cuv[100];
- int main()
- {
- int i, c=0;
- cin.getline(x, 100);
- for(i=0; i<strlen(x); i++)
- {
- if(toupper(x[i])>='A' && toupper(x[i])<='Z')
- {
- cuv[c]=x[i];
- c++;
- }
- }
- cout<<cuv;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement