program to find entered number is positive or negative if it is positive then check it is even or odd.



void main() { int a; clrscr(); printf("enter any number="); scanf("%d",&a); if(a>0) { printf("given number is positive"); if(a%2==0) { printf("given number is even"); } else { printf("given number is odd"); } } else { printf("given number is negative"); } getch(); } output: enter any number=25 given number is positive given number is odd