# URI Online Judge Solution 1074 Even or Odd – Solution in C, C++, Java, Python and C#

### URI Online Judge Solution 1074 Even or Odd – Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1074 Even or Odd | Beginner

Problem Name: 1074 Even or Odd
Problem Number : URI – 1074 Even or Odd
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

### URI Solution 1074 Even or Odd Code in C:

``#include <stdio.h>int main( ){ int N, i, x; scanf("%d", &N); for( i = 1; i <= N; i++){  scanf("%d", &x);  if(x == 0){   printf("NULLn");  }else if(x % 2 == 0){   if(x > 0){    printf("EVEN POSITIVEn");   }else{    printf("EVEN NEGATIVEn");   }  }else{   if(x > 0){    printf("ODD POSITIVEn");   }else{    printf("ODD NEGATIVEn");   }  } }}``

### URI Solution 1074 Even or Odd Code / URI 1074 solution in CPP:

``#include <iostream>using namespace std;int main(){ int n, x; cin >> n; for (int i = 0; i < n; ++i) {  cin >> x;  if(x == 0){   cout << "NULL" << endl;  }else if(x % 2 == 0){   if(x > 0){    cout << "EVEN POSITIVE" << endl;   }else{    cout << "EVEN NEGATIVE" << endl;   }  }else{   if(x > 0){    cout << "ODD POSITIVE" << endl;   }else{    cout << "ODD NEGATIVE" << endl;   }  } } return 0;}``

### URI Solution 1074 Even or Odd Code / URI 1074 solution in Java:

``/** URI - 1074 by Java * Author - Maniruzzaman Akash */import java.util.*;public class Main {     public static void main(String[] args){          int N, i, x;         Scanner sc = new Scanner(System.in);         N = sc.nextInt();         for( i = 1; i <= N; i++){          x = sc.nextInt();          if(x == 0){           System.out.printf("NULLn");          }else if(x % 2 == 0){           if(x > 0){            System.out.printf("EVEN POSITIVEn");           }else{            System.out.printf("EVEN NEGATIVEn");           }                  }else{           if(x > 0){            System.out.printf("ODD POSITIVEn");           }else{            System.out.printf("ODD NEGATIVEn");           }          }                 }     } }``

### URI Solution 1074 Even or Odd Code / URI 1074 solution in  Python:

``l=[]a=int(input())for n in range(1,(a+1)):    l.append(int(input()))for n in l:    if (n%2!=0)and (n0):        print("ODD POSITIVE")    if(n%2==0)and(n0):        print("EVEN POSITIVE")``

### URI Solution 1074 Even or Odd Code / URI 1074 solution in  C# (C Sharp):

Demonstration:

This is something pretty conditional code. If happens this print this or others. Nothing is hard here. Try to do with yourself.

Run Live: (Give the input in StdIn Inputs and see result live if it is working or not)

Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI 1074 Even or Odd  code in C, URI 1074 Even or Odd code in C++, URI 1074 Even or Odd  solution in C, URI solution, URI 1074 Even or Odd solution in C,URI 1074 Even or Odd solution in C++-CPP,URI 1074 Even or Odd solution in C# (C sharp),URI 1074 Even or Odd solution in Java,URI 1074 Even or Odd solution in Python,

#### By Maniruzzaman Akash

Maniruzzaman Akash is a freelance web developer with most popular Laravel PHP frameork and Vue JS