【C語言】製作九九乘法表

代碼: #include "stdio.h" int main(){ int x,y;//申請行和列變量 for(x = 1;x <= 9; x++){//循環行 for(y = 1; y <= x; y++){ // 循環列 列數等於當前行數 printf("%d*%d=%d\t",y,x,y*x);//輸出 注意輸出格式 } printf("\n");
相關文章
相關標籤/搜索