發(fā)布時(shí)間:2025-09-29 21:33:11 瀏覽次數(shù):1
這代碼哪兒都有啊
#include <stdio.h> int main(void){ //for循環(huán)實(shí)現(xiàn)9*9乘法表 /*
1*1=1 1*2=2
2*2=4 1*3=3 2*3=6 3*3=9 */ int temp,i,j; for(i=1; i<10; i++){ for(j=1;j<=i;j++){ temp = j*i; // if(temp<10){ printf("%d*%d= %d ",j,i,temp); }else{ printf("%d*%d=%d ",j,i,temp); } } printf("\n"); } return 0;}。