2 solutions

  • 1
    @ 2025-3-22 13:45:10

    #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%2==0) { cout<<"even"; } else { cout<<"odd"; } return 0; }

    • 0
      @ 2025-4-19 19:13:42

      #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%2!=0){ cout<<"odd"; } else if(n%2==0){ cout<<"even"; } cout<<endl; return 0; }

      • 1

      Information

      ID
      855
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      4
      Tags
      (None)
      # Submissions
      161
      Accepted
      73
      Uploaded By