一、运行结果;
二、源代码;
# define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
//初始化变量值;
int a = 2;
int result = 1;
//循环运算;
while (a <= 100)
{
//加;
result = a + result;
//改变变量值;
a++;
}
//输出结果;
printf("100以内的累乘结果为:%d\n", result);
return 0;
}
三、流程图;
四、N-S流程图;