考题3
作者:互联网
include<stdio.h>
int main()
{
int a, b, c, d, i = 0;
for (a = 0; a <= 9; a++)
for (b = 0; b <= 9; b++)
for (c = 0; c <= 9; c++)
for (d = 0; d <= 9; d++)
if ((a10 + b)(c10 + d)) == ((b10 + a)(d10 + c))
printf("%d%d%d%d=%d%d%d%d ", a, b, c, d, b, a, d, c);
i++;
if (i % 5 == 0)
printf("\n");
return 0;
}
标签:c10,d10,int,d%,考题,printf,main 来源: https://www.cnblogs.com/zhengruixin/p/14028341.html