Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by Damian Konopka ELO
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string tekst;
- cin >> tekst;
- int dlugosc = tekst.length();
- int pozycja = -1;
- pozycja = tekst.find('.');
- if(pozycja>=0)
- tekst.replace(pozycja, 1, ",");
- else
- {
- tekst.erase(dlugosc-2, 2);
- tekst.erase(0, 2);
- }
- cout << tekst << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement