在第一个循环中给a数组的前十个数组元素依次赋;在第二个循环中使a数组前十个元素中的值按逆序

在第一个循环中给a数组的前十个数组元素依次赋1、2、3、4、5、6、7、8、9、10;在第二个循环中使a数组前十个元素中的值按逆序存放,变成10、9、8、7、6、5、4、3、2、1;在最后一个循环中输出逆序存放以后的a数组前十个元素。
#include <stdio.h>
main( )
{ int i,a[10],t;

for(i=0;i<10;i++)
a[i]=i+1;
/**************found************/
for(i=0;___(1)___;i++)
{ t=a[i];
/**************found************/
a[i]=___(2)___;
___(2)___=t;
}
for(i=0;i<10;i++)
printf("%5d",a[i]);
printf("\n");
}
7
求 m!
Cmn=———————— (Cmn=m!/(n!*(m-n)!)
n!*(m-n)!
#include <math.h>
#include <conio.h>
#include <stdio.h>
/************found************/
long int fun( ____(1)____)
{int i;
long int s=1;
for (i=2;i<=x;i++)
s *= i;
return (s);
}
main()
{ long int m=12,n=2,s1,s2,s3;

/************found************/
____(2)____;
s2=fun(n);
s3=fun(m-n);
printf("Cmn is : %ld",s1/s2/s3 );
}

第一题:i<5, a[9-i], a[9-i]
第二题:long int x, s1=fun(m)
看来你有很多题做,而我只是喜欢做题,以后有空会帮你解一解
温馨提示:答案为网友推荐,仅供参考