#include "stdio.h"
main()
{
int i,j,k;
unsigned long num;
int c[6]={7,4,12,8,11,6};
num=0;
for (i=0;i<6;i++)
for (j=0;j<6;j++)
for (k=0;k<6;k++)
if(i!=j&&i!=k&&j!=k)
num=num+c[i]*c[j]*c[k];
printf("\nThe number is %ld\n",num);
getch();
}
[此贴子已经被作者于2006-1-11 23:31:38编辑过]