Ответ:
C++
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
for (int i = 10; i <= n; i++){
if (i / 10 == i % 10) cout << i << " ";
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
C++
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
for (int i = 10; i <= n; i++){
if (i / 10 == i % 10) cout << i << " ";
}
return 0;
}