判断一个数能否同时被3和5整除
摘要:解题思路:同时被3和5整除注意事项:题目中说的是n别搞错了自定义;还有等号是==;条件是同时存在所以用&&参考代码:#include<stdio.h>int main(){ int n; ……
2785普普通通的解题方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if (n%3 == 0 && n%5== 0) printf(……
判断一个数能否同时被3和5整除
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long n; scanf("%lld",&n); if(n%3==0 && n%……
判断一个数能否同时被3和5整除
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); if(x%3==0&&x%5==0) printf("Y……
java 逻辑运算符
摘要:解题思路:注意事项:注意逻辑运算符 || 和 && 的运用前者类似or,后作者类似and参考代码:import java.util.Scanner;public class Main { pub……
2785: 判断一个数能否同时被3和5整除
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
long long int a;
ci……
7788的写法,while语句写法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n ; scanf ( "%d",&n ) ; while ( n%15==……
题解 2785: 判断一个数能否同时被3和5整除
摘要:参考代码:#include<iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout <<……
编写题解 2785: 判断一个数能否同时被3和5整除,python超简单
摘要:解题思路:详见代码注意事项:%的运用参考代码:n = int(input())if n % 3 == 0 and n % 5 == 0: print('YES')else: ……