Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string txt,a;
  8.  
  9.     getline(cin,txt);
  10.  
  11.     for (int i=0;i<txt.size();i++) {
  12.         if (txt[i]=='.') {
  13.  
  14.         }
  15.         else {
  16.             a+=txt[i];
  17.         }
  18.     }
  19.  
  20.     cout << a;
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement