1)#include <iostream>#include <conio.h>#include <string>using namespace std;int main(){string str;getline(cin, str);for (int i = 1; i < str.length(); i++){if (i % 3 == 0){cout << str[i] << endl;}}_getch();return 0;}2)#include <iostream>#include <conio.h>#include <string>using namespace std;int main(){ string str; getline(cin, str); for (int i = 1; i < str.length(); i++) { if (i % 2 == 0) { if (str[i] != 'a') { str[i] = 'a'; } if (str[i] != 'b') { str[i] = 'b'; } if (str[i] != 'c') { str[i] = 'c'; } } } cout << str << endl; _getch(); return 0;}