>
其他
>
请编写函数fun(),它的功能是:求出1到1000之内能被5或13整除、但不能同时被5和13整除的所有整数并将它们
人气:450 ℃ 时间:2020-03-25 20:09:34
解答
#include
#include
void fun()
{int i,k,a[300];
for(i=0;i<1000;i++)
if((i%5==0&&i%13!=0)||(i%13==0&&i%5!=0))
printf("%-5d",i);
printf("\n");
}
int main()
{ fun();
system("pause");
return 0;
}
推荐
请编写函数fun(),它的功能是:求出1到1000之内能被7或11整除、但不能同时被7和11整除的所有整数并将它们
VB 编写函数fun,函数的功能是:求1-1000内能同时被m,n整除的数的总和并显示.
编写函数fun功能是求出1到100之间能被7整除但不能同时被7和11整除的所有整数并将他们放在a所指的数组中通过n返回这些数的个数
请编写一个函数fun,它的功能是:求出1到m(含m)之内能被7或11整除的所有整数放在数
在自然数1到1000中,不能被7和13整除的数有( )个. A.792 B.782 C.772
化简代数式,使结果只含有正整数指数幂:(-3a2b-2)-3(-2a-3b4)-2.
There are tow ball in the pictures.The one is a football.The one is a basketball.The foot
把一个苹果分成3份,吃了其中的2份,吃了苹果的三分之二.对吗?
猜你喜欢
已知|a|=3,|b|=4,且a+b0 求:a-b-ab的值
如果函数f(x)满足f(n2)=f(n)+2,n≥2,且f(2)=1,那么f(256)=_.
only socks are for three $2 pairs the .l连词成句
已知向量a=(cos2x,sin2x),b=(根号3,1),函数f(x)=ab+m
You would better wear yellow coat when you walk in the woods.怎么改错
木兰从军解释
Both he and she have read the novel.同义句
一只由黑、白两色皮子缝制而成的足球,黑皮子是正五边形,白皮子是正六边形,问黑、白皮子各有几块?
© 2025 79432.Com All Rights Reserved.
电脑版
|
手机版