1 solutions

  • 0
    @ 2025-11-5 15:06:38

    C :

    #include<stdio.h>
    
    int main()
    {
    	int a;
    	scanf("%d",&a);
    	if(a%3==0){
    		printf("yes");
    	}
    	return 0;
    }
    

    C++ :

    #include <iostream> 
    #include <cstdio>
    using namespace std;
    int main()
    {
    	int x;
    	cin>>x;
    	if(x%3 == 0)
    	{
    		cout<<"yes"<<endl;
    	}
    	else
    	{
    // 		cout<<"no"<<endl;
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    16406
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By