⼩学⽣c语⾔编程题⽬及答案,C编程⼩学⽣的题如何做结果:
1358 / 02 = 679
1368 / 24 = 057
1368 / 57 = 024
1538 / 02 = 769
1568 / 04 = 392
1568 / 32 = 049
1568 / 49 = 032
1586 / 02 = 793
1587 / 23 = 069
1587 / 69 = 023
1596 / 38 = 042
1596 / 42 = 038
1734 / 06 = 289
编程小学生有必要学吗1746 / 03 = 582
1758 / 06 = 293
1768 / 34 = 052
1768 / 52 = 034
1782 / 03 = 594
1972 / 34 = 058
1972 / 58 = 034
1974 / 03 = 658
1976 / 38 = 052
1976 / 52 = 038
2146 / 37 = 058
2146 / 58 = 037
2184 / 39 = 056
2184 / 56 = 039
2316 / 04 = 579
2457 / 03 = 819
2718 / 06 = 453
3192 / 07 = 456 3276 / 04 = 819 3516 / 04 = 879 3672 / 04 = 918 3672 / 08 = 459 3712 / 58 = 064 3712 / 64 = 058 3752 / 08 = 469 3762 / 09 = 418 3876 / 19 = 204 4123 / 07 = 589 4296 / 08 = 537 4396 / 28 = 157 4508 / 23 = 196 4632 / 08 = 579 4736 / 08 = 592 4807 / 19 = 253 4851 / 07 = 693 48
76 / 53 = 092 4876 / 92 = 053 4890 / 15 = 326 5278 / 13 = 406 5346 / 18 = 297 5346 / 27 = 198 5392 / 08 = 674 5394 / 62 = 087 5394 / 87 = 062 5408 / 32 = 169 5432 / 08 = 679
5936 / 08 = 742 6042 / 38 = 159 6052 / 34 = 178 6251 / 07 = 893 6290 / 34 = 185 6352 / 08 = 794 6372 / 59 = 108 6384 / 07 = 912 7056 / 18 = 392 7098 / 13 = 546 7254 / 39 = 186 7290 / 15 = 486 7326 / 09 = 814 7362 / 18 = 409 7380 / 15 = 492 7452 / 69 = 108 7456 / 08 = 932 7524 / 09 = 836 7536 / 08 = 942 7624 / 08 = 953 7632 / 08 = 954 7632 / 48 = 159 7638 / 19 = 402 7852 / 13 = 604 7920 / 48 = 165 8024 / 59 = 136 8340 / 12 = 695 8607 / 19 = 453 8970 / 26 = 345
程序:
#include
#include
int main(void)
{
char A,B,C,D,E,F,G,X,Y;
for(A=0;A<10;A++)
for(B=0;B<10;B++)
if(A!=B)
for(C=0;C<10;C++)
if(B!=C && A!=C)
for(D=0;D<10;D++)
if(A!=D && B!=D && C!=D)
for(E=0;E<10;E++)
if(A!=E && B!=E && C!=E && D!=E)
for(F=0;F<10;F++)
if(A!=F && B!=F && C!=F && D!=F && E!=F)
for(G=0;G<10;G++)
if(A!=G && B!=G && C!=G && D!=G && E!=G && F!=G)
for(X=0;X<10;X++)
if(A!=X && B!=X && C!=X && D!=X && E!=X && F!=X && G!=X)
for(Y=0;Y<10;Y++)
if(A!=Y && B!=Y && C!=Y && D!=Y && E!=Y && F!=Y && G!=Y && X!=Y) if((A*1000.0+B*100.0+C*10.0+D)/(E*10.0+F)==G*100.0+X*10.0+Y) printf("%d%d%d%d / %d%d = %d%d%d\n",A,B,C,D,E,F,G,X,Y);
getch();
return 0;
}

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。