实验8 九九乘法表

#include<stdio.h>
int main (){
    int a[9][9];
    int i,j,temp=1;
    
    for(i=0;i<9;i++){
        for(j=0;j<=i;j++){
            temp=(i+1)*(j+1);
            a[i][j] = temp;
            printf("%d*%d=%d ",i+1,j+1,a[i][j]);
            if(j==i)
                printf("
");
        }
    }
    return 0;
}

原文地址:https://www.cnblogs.com/liruijia199531/p/3411347.html