8 solutions

  • 1
    @ 2023-9-19 18:36:06
    #include <bits/stdc++.h>
    using namespace std;
    int main(int argc, char **argv){
    	int n;
    	cin >> n;
    	if (n % 2 == 0){
    		cout << "even";
    	}else{
    		cout << "odd";
    	}
    	return 0;
    }
    
    • 0
      @ 2024-10-20 15:05:27
      
      #include<bits/stdc++.h>
      using namespace std;
      long long n;
      int main(){
         scanf("%lld",&n);
         if(n%2==1){
            printf("odd");}
         else{
            printf("even");}
         return 0;}
      
      • 0
        @ 2024-7-9 19:48:37
        #include <bits/stdc++.h>
        using namespace std;
        int main(int argc, char **argv){
        	int n;
        	cin >> n;
        	if (n % 2 == 0){
        		cout << "even";
        	}else{
        		cout << "odd";
        	}
        	return 0;
        }
        
        • 0
          @ 2024-7-9 16:38:52
          #include <bits/stdc++.h>
          using namespace std;
          int main(int argc, char **argv){
          	int n;
          	cin >> n;
          	if (n % 2 == 0){
          		cout << "even";
          	}else{
          		cout << "odd";
          	}
          	return 0;
          }
          
          • 0
            @ 2024-7-9 16:21:51

            #include <bits/stdc++.h>

            using namespace std;

            int main(){ int n; cin >> n; if(n % 2 == 0){ cout << "even"; } else{ cout << "odd";

            }
            return 0;
            

            }

            • 0
              @ 2024-2-16 23:13:17
              #include <bits/stdc++.h>
              
              using namespace std;
              
              int main(){
              	int n;
              	cin >> n;
              	if(n % 2 == 0){
              		cout << "even";
              	}
              	else{
              		cout << "odd";
              		
              	}
              	return 0;
              } 
              
              • -1
                @ 2024-7-9 16:23:55

                #include using namespace std; int main(){ int a; cin>>a; if(a%2==1){ cout<<"odd"; } else{ cout<<"even";

                }
                return 0;
                

                }

                • -3
                  @ 2024-7-9 17:12:54
                  #include <iostream>
                  #include <iomanip>
                  #include <cmath>
                  using namespace std;
                  int main() {
                      int a;
                      cin>>a;
                      if(a%2==0)
                      {
                  		cout<<"even";
                  	}
                  	else
                  	{
                  		cout<<"odd";
                  	}
                      return 0;
                  } 
                  
                  • 1

                  Information

                  ID
                  528
                  Time
                  1000ms
                  Memory
                  256MiB
                  Difficulty
                  4
                  Tags
                  # Submissions
                  326
                  Accepted
                  138
                  Uploaded By