Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c=0;
- scanf("%d",&a);
- for(c=0; c<a; c++)
- {
- scanf("%d",&b);
- if(b>0)
- {
- if(b%2==0)
- {
- printf("EVEN POSITIVE\n");
- }
- else
- {
- printf("ODD POSITIVE\n");
- }
- }
- else if(b<0)
- {
- if(b%2==0)
- {
- printf("EVEN NEGATIVE\n");
- }
- else
- {
- printf("ODD NEGATIVE\n");
- }
- }
- else
- {
- printf("NULL\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement