2785普普通通的解题方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if (n%3 == 0 && n%5== 0) printf(……
7788的写法,while语句写法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n ; scanf ( "%d",&n ) ; while ( n%15==……
switch语句的两种写法,来自我朋友的分享
摘要:解题思路:注意事项:一个数字能同时被3和5整除,即能被15整除参考代码://方法1#include<stdio.h>int main ( ){ int n ; scanf ("%d",……
编写题解 2785: 判断一个数能否同时被3和5整除,python超简单
摘要:解题思路:详见代码注意事项:%的运用参考代码:n = int(input())if n % 3 == 0 and n % 5 == 0: print('YES')else: ……
题解 2785: 判断一个数能否同时被3和5整除
摘要:参考代码:#include<iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout <<……
2785: 判断一个数能否同时被3和5整除
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
long long int a;
ci……
java 逻辑运算符
摘要:解题思路:注意事项:注意逻辑运算符 || 和 && 的运用前者类似or,后作者类似and参考代码:import java.util.Scanner;public class Main { pub……
判断一个数能否同时被3和5整除
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); if(x%3==0&&x%5==0) printf("Y……