//数对 #include<stdio.h> int main(){ int n,i,j; scanf("%d",&n); for(i=1;i<=n;i++){ for(j=n;j>=1;j--){ if(i*j == n) printf("%d*%d = %d\n",i,j,n); } } return 0; }
原文地址:https://www.cnblogs.com/Hqx-curiosity/p/12245111.html
时间: 2024-10-28 16:35:02
//数对 #include<stdio.h> int main(){ int n,i,j; scanf("%d",&n); for(i=1;i<=n;i++){ for(j=n;j>=1;j--){ if(i*j == n) printf("%d*%d = %d\n",i,j,n); } } return 0; }
原文地址:https://www.cnblogs.com/Hqx-curiosity/p/12245111.html