#include <iostream>
#include <string>
using namespace std;
int main()
{
string st;
int n;
cin >> st;
n = st.size();
for (int i = 1; i <= n / 2; i++)
cout << st[i - 1];
}
cout << "8";
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <string>
using namespace std;
int main()
{
string st;
int n;
cin >> st;
n = st.size();
for (int i = 1; i <= n / 2; i++)
{
cout << st[i - 1];
}
for (int i = 1; i <= n / 2; i++)
{
cout << "8";
}
}