int x,y,sum=0; int a[4][4]={{10,9,3,8},{4,7,12,5},{11,15,2,9},{2,4,6,8}};for(x=0;x
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/21 09:17:02
intx,y,sum=0;inta[4][4]={{10,9,3,8},{4,7,12,5},{11,15,2,9},{2,4,6,8}};for(x=0;xintx,y,sum=0;inta[4][
int x,y,sum=0; int a[4][4]={{10,9,3,8},{4,7,12,5},{11,15,2,9},{2,4,6,8}};for(x=0;x
int x,y,sum=0; int a[4][4]={{10,9,3,8},{4,7,12,5},{11,15,2,9},{2,4,6,8}};for(x=0;x
int x,y,sum=0; int a[4][4]={{10,9,3,8},{4,7,12,5},{11,15,2,9},{2,4,6,8}};for(x=0;x
程序的功能是把数组中所有能被5整除的数加在一起.据观察,能被5整除的数有3个:10,5和15,所以sum=30