Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement