一、N-S流程图;
二、运行结果;
三、源代码;
# define _CRT_SECURE_NO_WARNINGS
# include <stdio.h>
int main()
{
//初始化变量值;
int i = 0;
int j = 0;
int result = 0;
//嵌套循环输出;
for (i = 1; i <= 4; i++)
{
//列;
for (j = 1; j <= 5; j++)
{
//运算;
result = i * j;
//输出;
printf("%d\t", result);
}
//换行;
printf("\n");
}
return 0;
}