SHARE
TWEET

Untitled

a guest Jan 29th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cstring>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. ifstream fin("prosir.in");
  8. ofstream fout("prosir.out");
  9.  
  10. int main()
  11. {
  12.     char s[201];
  13.  
  14.     fin.getline(s,201);
  15.     for(int i=0;i<=strlen(s);i++)
  16.     {
  17.         if((s[i+1]==' ' || s[i+1]=='.') && s[i]!=' ')
  18.             s[i]='5';
  19.     }
  20.     fout << s;
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top