Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
239 B
1
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
void name(string &a) {
	for (int i = 0; i < a.size(); i++) {
		if (a[i] == 'o') {
			a[i] = 'a';
		}
	}
}
int main()
{
	string a;
	cin >> a;
	name(a);
	cout << a;
}
Leave a Comment