2786: 判断能否被3、5、7整除 摘要:解题思路:不用循环,只用条件判断语句注意事项:参考代码:a = int(input())if a % 3 == 0 and a % 5 == 0 and a % 7 == 0: print(&#…… 题解列表 2022年11月29日 0 点赞 0 评论 547 浏览 评分:2.0
2786: 判断能否被3、5、7整除(c语言解法) 摘要:解题思路:用if - else if - else 来写,括号里面配合&&和||来增加条件注意事项:只有if和else if后面可以加()写条件,else的后面不能加()写条件参考代码:#includ…… 题解列表 2023年07月03日 0 点赞 0 评论 800 浏览 评分:6.0
分支结构-判断能否被3、5、7整除 摘要:#include #include int main() { int n; scanf("%d",&n); if(n%3==0&&n%5==0&&n%7==0) …… 题解列表 2024年01月22日 0 点赞 1 评论 280 浏览 评分:6.0
判断能否被3、5、7整除 , 满分通过 摘要:解题思路:满分代码注意事项:int长度不够,需要+long参考代码:#includeint main(){ long int a,n; scanf("%ld",&n); …… 题解列表 2023年10月10日 0 点赞 0 评论 408 浏览 评分:7.0
(超简单版)的判断能否被3,5,7整除 摘要:解题思路:直接一个简单的for循环来做,不用if语句,因为太多了,不简便注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&…… 题解列表 2022年11月11日 0 点赞 3 评论 504 浏览 评分:8.8
判断能否被3、5、7整除代码 摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){ int m; scanf("%…… 题解列表 2022年10月23日 0 点赞 1 评论 814 浏览 评分:9.3
看后五颗星,养成好习惯 ε≡٩(๑>₃<)۶ 一心向学 摘要:解题思路:下图可见注意事项:十分简单,自己思考,不许借鉴,人人有责参考代码:#include<iostream>using namespace std;int main(){ int a; cin >…… 题解列表 2023年12月18日 0 点赞 0 评论 215 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月06日 0 点赞 0 评论 214 浏览 评分:9.9
判断能否被3、5、7整除 摘要: ``` #include using namespace std; int main() { int n; cin >> n; if (n % 3 == 0) cout …… 题解列表 2023年11月03日 0 点赞 0 评论 341 浏览 评分:9.9
python四行搞定 摘要:解题思路:注意事项:参考代码:list,num = [3,5,7],int(input())for i in list: if num % i == 0:print(i,end=' &#…… 题解列表 2024年02月03日 2 点赞 0 评论 457 浏览 评分:9.9