top1编程
← 返回题目
题解

【入门】判断3的倍数

1 条题解

  • 0
    @ 2026-7-28 22:09:42
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n;
    	cin>>n;
    	if(n%3==0)cout<<"yes"<<endl;
    	else cout<<"no"<<endl;
    	return 0;
    }
    
    • 1