Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- string s,k;
- int l, n;
- cin >> s;
- k = append (s[0]);
- k = append ('.');
- l = s.find (" ");
- k = append (s[l + 1]);
- k = append ('.');
- n = s.find (" ", l);
- k = append ('.');
- cout << k;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement