题解 2786: 判断能否被3、5、7整除

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

判断能否被3、5、7整除

摘要:解题思路:题目说如果能被整除,则从小到大输出能被出的数,那就从到到大,用if判断就好了注意事项:参考代码:#include<stdio.h> int main() { int a; sca……

主用分支结构

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    if(a%3==0 && a%5==0 && a……

2786普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if (n%3 == 0 && n%5== 0 && n%7 =……

2786: 判断能否被3、5、7整除(c语言解法)

摘要:解题思路:用if - else if - else 来写,括号里面配合&&和||来增加条件注意事项:只有if和else if后面可以加()写条件,else的后面不能加()写条件参考代码:#includ……

判断能否被3、5、7整除代码

摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){    int m;    scanf("%……