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