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

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

筛选

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

摘要:解题思路:不用循环,只用条件判断语句注意事项:参考代码:a = int(input())if a % 3 == 0 and a % 5 == 0 and a % 7 == 0:    print(&#……

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("%……

java--study||O.o

摘要:参考代码:import java.util.Scanner;   public class Main {   public static void main(String[] args)   ……

python四行搞定

摘要:解题思路:注意事项:参考代码:list,num = [3,5,7],int(input())for i in list:    if num % i == 0:print(i,end=&#39; &#……