用c语言的while语句实现以下效果输入两个数字打印出几行几列的请求失败2用c语言的while语句实现以下效果分别输入两个数字打印出几行几列的请问是需要两个程序还是一个程序实现两个功能呢?以下是分别实现两个功能的程序:1 输入两个数字打印出几行几列的c#include stdiohint main int rows cols; printf请输入行数和列数:; scanfd d
#include <stdio.h>
int main() {
int i = 1, j = 1;
while (i <= 9) {
if (i % 2 == 1) {
j = 1;
while (j <= i) {
printf("%d*%d=%d\t", j, i, i*j);
j++;
}
printf("\n");
}
i++;
}
return 0;
}
原文地址: https://www.cveoy.top/t/topic/bVdj 著作权归作者所有。请勿转载和采集!