奇数乘积(C语言)
一、运行结果;
二、源代码;
# define _CRT_SECURE_NO_WARNINGS
# include <stdio.h>
int main()
{
//初始化变量值;
int i = 1;
int j = 3;
//循环运算;
while (j < 12)
{
//运算;
i = i * j;
//改变数值;
j += 2;
}
//打印结果;
printf("%d\n", i);
return 0;
}
一、运行结果;
二、源代码;
# define _CRT_SECURE_NO_WARNINGS
# include <stdio.h>
int main()
{
//初始化变量值;
int i = 1;
int j = 3;
//循环运算;
while (j < 12)
{
//运算;
i = i * j;
//改变数值;
j += 2;
}
//打印结果;
printf("%d\n", i);
return 0;
}