1、程序调试.
2、编写程序,输出一张乘法口诀表。要求必须将乘积放入一个二维数组中,再输出该数组。
#include <stdio.h> int main(void) { int i,j,sum; printf(" 九九乘法表 "); /*输入提示*/ for (i=1;i<=9;i++) /*输入第一个数循环*/ { for (j=1;j<=i;j++) /*输入第二个数循环,并比第一个数小*/ { printf("%d*%d=%d ",j,i,i*j); /*输出乘积*/ } printf(" "); } sum=i*j; printf("%d ",sum); return 0; }