#include
void main()
{
int n;
printf("please input the data:\n");
scanf("%d",&n);
if(n%3==0&&n%5==0)
printf("the %d can be divided by 3 and 5",n);
else
printf("the %d cannot be divided by 3 and 5",n);
return 0;
}
问一个C语言的编程问题~判断一个数n能否同时被3和5整除~
问一个C语言的编程问题~判断一个数n能否同时被3和5整除~
其他人气:384 ℃时间:2019-10-18 02:56:27
优质解答
我来回答
类似推荐
猜你喜欢
- 1there will be less free time改为同义句
- 2七(1)班四个绿化小组植树的棵树如下:10,10,x,8,已知这组数据的众数和平均数相等,那么这组数据的中位数是_棵.
- 3我敬佩的一个人作文 写环卫工人的
- 4what did you do yesterday?怎么回答
- 5渔歌子一词描写了什么的景象,既有什么,又有什么
- 6把一张长12cm.宽8cm的长方形纸剪成同样大小.面积尽可能大的正方形,且纸没有剩余,剪出的正方形的边长是?
- 7关于春天的英语作文
- 8一个角的余角比这个角的补角三分之一还少10°,求这个角的度数
- 9at home,likes ,he ,stay ,to ,连成英语句
- 10m是什么实数时,关于x的一元二次方程mx的平方-(1-m)x+m=0没有实数根?