如何利用C語言for循環(huán)輸出九九乘法口訣

發(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;}。

九九乘法表c語言
需要裝修報(bào)建?需要辦理施工許可證?歡迎咨詢客戶經(jīng)理 18221559551