Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[25],rez[55];
- int main()
- {
- int i,n;
- cin.getline(x,25);
- n=strlen(x);
- for(i=0;i<n;i++)
- {
- if(x[i-1]==' ')
- {
- strncat(rez,x+i,1);
- }
- }
- strcat(rez,". ");
- strcat(rez,x);
- cout<<rez;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement