短路运算代替判断语句 摘要:解题思路:利用逻辑运算进行短路运算注意事项:考虑逻辑运算表参考代码:#include <stdio.h>int main() { int n; scanf("%d",&n); n%3…… 题解列表 2023年02月15日 0 点赞 0 评论 1348 浏览 评分:9.3
判断能否被3、5、7整除(浅卡一个bug)通俗易懂 摘要:解题思路:短注意事项:无参考代码:#include<stdio.h>int main(){ long long int n; scanf("%lld", &n); if (n % 3 == 0) p…… 题解列表 2023年01月27日 0 点赞 0 评论 1490 浏览 评分:8.8
(超简单版)的判断能否被3,5,7整除 摘要:解题思路:直接一个简单的for循环来做,不用if语句,因为太多了,不简便注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&…… 题解列表 2022年11月11日 0 点赞 3 评论 833 浏览 评分:8.8
判断能否被3、5、7整除代码 摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){ int m; scanf("%…… 题解列表 2022年10月23日 0 点赞 1 评论 1223 浏览 评分:9.3