Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <fstream>
- using namespace std;
- ifstream fin("prosir.in");
- ofstream fout("prosir.out");
- int main()
- {
- char s[201];
- fin.getline(s,201);
- for(int i=0;i<=strlen(s);i++)
- {
- if((s[i+1]==' ' || s[i+1]=='.') && s[i]!=' ')
- s[i]='5';
- }
- fout << s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement