-
Notifications
You must be signed in to change notification settings - Fork 0
/
Beecrowd1074.cs
45 lines (36 loc) · 1016 Bytes
/
Beecrowd1074.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
//Desenvolved by @Foqsz
namespace Course
{
internal class Program
{
static void Main(string[] args)
{
int entrada = int.Parse(Console.ReadLine());
for (int i = 0; i < entrada; i++)
{
int N = int.Parse(Console.ReadLine());
if (N == 0)
{
Console.WriteLine("NULL");
}
else if (N < 0 && N % 2 != 0)
{
Console.WriteLine("ODD NEGATIVE");
}
else if (N > 0 && N % 2 != 0)
{
Console.WriteLine("ODD POSITIVE");
}
else if (N > 0 && N % 2 == 0)
{
Console.WriteLine("EVEN POSITIVE");
}
else if (N < 0 && N % 2 == 0)
{
Console.WriteLine("EVEN NEGATIVE");
}
}
}
}
}