3.代码示例
#include<iostream> using namespace std; int main(){ int a1,a2,a3,a4,s,m; for(a1=0;a1<=9;a1++){ for(a3=0;a3<=9;a3++){ if(a1!=a3){ s=a1*1000+a1*100+a3*10+a3; //cout<<s<<" "; for(m=31;m<99;m++){ if(m*m==s){ cout<<"车牌号为:"<<s; } } } } } return 0; }
4.输出截图
标签:std,示例,int,Day4,a1,main From: https://www.cnblogs.com/cream867/p/17321573.html