程序描述
打印给定数字的乘法表
算法
接受用户提供的任何需要形成乘法的数字
从 I 的值开始乘以给定数 (=1)
2026年数字艺术字分层PSD素材适用于2026数字艺术字设计 本作品提供2026年数字艺术字分层PSD素材的图片会员免费下载,格式为PSD,文件大小为13.2M; 请使用软件Photoshop进行编辑,作品中文字及图均可以通过软件修改和编辑;
将给定数与 I 的值递增,直到 I 值小于或等于12.
示例
/* Program to print the multiplication table of a given number */
#include <stdio.h>
int main() {
int number, i;
clrscr();
printf("Please enter any number to find multiplication table:");
scanf("%d", &number);
printf("Multiplication table for the given number %d: ", number);
printf("<p>");
for(i=1;i</p>
<p>");
}
getch();
return 0;
}</p></stdio.h>
输出











