You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python/C++专题课程/基础知识/原始版本4位回文数_陈宏嘉版本.cpp

15 lines
198 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#include<bits/stdc++.h>
using namespace std;
int main() {
int i,j;
for(i=1; i<10; i++) { //9´ÎÑ­»·
for(j=0; j<10; j++) { //10´ÎÑ­»·
printf("%d\n",i*1000+j*100+j*10+i);
}
}
return 0;
}