int k;
cin >> k;
string str;
for(int i = 1; i<=str; ++i) {
str+=i;
}
cout << str[k];
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
int k;
cin >> k;
string str;
for(int i = 1; i<=str; ++i) {
str+=i;
}
cout << str[k];