用函数编程计算并输出如图所示的三角形。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。【图片】#include
#defineN20voidCaculateYH(inta[][N],intn);voidPrintYH(inta[][N],intn);intmain(){inta[N][N]={0},n;printf("Inputn(n<20):");scanf("%d",&n);CaculateYH(a,n);PrintYH(a,n);return0;}/*函数功能:计算三角形前n行元素的值*/voidCaculateYH(__________,intn){inti,j;for(i=0;i
<=i-1;j++){a[i][j]=__________________;}}}/*函数功能:输出三角形前n行元素的值*/voidPrintYH(inta[][N],intn){inti,j;for(i=0;i
A.
第16行: int a[][N] 第22行: a[i][i] = 1 第24行: i=2 第28行: a[i-1][j-1] + a[i-1][j] 第38行: j<=i
B.
第16行: int a[][] 第22行: a[i][i] = 1 第24行: i=1 第28行: a[i-1][j-1] + a[i-1][j] 第38行: j<=i
C.
第16行: int a[][N] 第22行: a[0][i] = 1 第24行: i=2 第28行: a[i-1][j-1] + a[i-1][j] 第38行: j
D.
第16行: int a[N][] 第22行: a[i][i] = 1 第24行: i=2 第28行: a[j-1][i-1] + a[j][i-1] 第38行: j<=i