实验8 九九乘法表

it2026-05-22  1

#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("\n"); } } return 0; }

转载于:https://www.cnblogs.com/liruijia199531/p/3411347.html

最新回复(0)