<span style="font-size:18px;">/* Note:Your choice is C IDE */
#include "stdio.h"
void line(int a,int b)
{
int m = a,n = b;
int s = 1,t = 1;
int consult,c;
b = b-1;
a = a-1;
c = b;
for(b; b > 0; b--) s = s*b;
for(c; c > 0; c--)
{
t = t*a;
a--;
}
consult = t/s;
printf("第%d行第%d列的数为:%d",m,n,consult);
}
void main()
{
int x,y;//x,y都等于1的话,数为1,程序没有设置
printf("请输入第几行:");
scanf("%d",&x);
printf("请输入第几列:");
scanf("%d",&y);
line(x,y);
}