编程要求
根据提示,在右侧编辑器Begin-End
处补充代码,求解出n
以内(包含n
)所有能被5
整除的正整数数的乘积s
输入 输入包含多个样例,每个样例一个正整数n
,占一行。读取到文件结尾。输入的n
不超过100
。
#include<stdio.h>
int main(void)
{
/*********Begin*********/
int n,m,total=1,s=5;
scanf("%d",&n);
m = n/5;
for(int i=1;i<=m;i++){
total = total*s;
s = s+5;
}
printf("%d",total);
/*********End**********/
return 0;
}