Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string.h>
  4. using namespace std;
  5. int main()
  6. {
  7. char s[201];
  8. ifstream in("prosir.in");
  9. ofstream out("prosir.out");
  10. in.getline(s,201);
  11. for(int i=0;i<=strlen(s)-1;i++)
  12. if(s[i]!=' ' && (s[i+1]==' ' || s[i+1]=='.'))
  13. s[i]='5';
  14. out<<s;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement