1 solutions

  • 0
    @ 2025-11-5 17:25:22

    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;
    }
    

    Pascal :

    var
    a,b,c:integer;
    begin
    readln(a);
    if a mod 3=0 then writeln('yes')
    else writeln('no');
    end.
    
    • 1

    Information

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