>
其他
>
c语言编程,用循环,求100以内能被5整除但不能被7整除的数及其和
人气:468 ℃ 时间:2019-08-20 22:06:53
解答
#include
void main()
{
int i,sum = 0;
for(i = 0; i< 101; i++)
if((i%5==0) && (i%7 != 0) )
{
printf("%d\n", i);
sum += i;
}
printf("The Sum is %d\n", sum);
}
推荐
c语言编程,1到100之间能被3整除或被5整除数的和
c语言编程实现输出1~100之内所有不能被7整除的整数之和
用for循环语句编程,写出,0到100之间能被3整除的个数
有40克食盐溶液,若加入200克水,它的浓度就减少10%.这种溶液原来有多少克水?原来浓度是多少?
请问BEC高级的各题的分数比例是多少?每一部分各占多少分
古诗词中描写鱼的诗句,
秋夜 陆游的翻译,赏析
1+1000000+100000+1000000+1000000+100000=?
猜你喜欢
There was a big river and tow hills in my hometown ten years ago.
诗经采薇表达了什么的思想感情
clothing made of the man-made fiber has certain advantages over() made of natural fiber like cotton
连续的两句含有"杜鹃"的古诗句.
若等差数列{an}的公差d≠0,且a1,a3,a7成等比数列,则a1a4=( ) A.12 B.25 C.2 D.52
一元二次方程-已知关于x的方程x^2+px+q=0的两个根式-1和-3,求p和q的值
About twice a week my driver collects me from school.l go and have lunch with a client
十年树木百年树人的意思
© 2026 79432.Com All Rights Reserved.
电脑版
|
手机版