Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a,i,n ;
- cin>>n;
- if(n<1000){
- for(i=1;i<=n;i++)
- {
- cin>>a;
- if(a==0)
- cout<<"NULL"<<endl;
- else if(a<0 && (a%2==-1))
- cout<<"ODD NEGATIVE"<<endl;
- else if(a<0 && (a%2==-0))
- cout<<"EVEN NEGATIVE"<<endl;
- else if(a>0 && (a%2==0))
- cout<<"EVEN POSITIVE"<<endl;
- else if(a>0 && (a%2==1))
- cout<<"ODD POSITIVE"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement