EVEN POSITIVE NEGATIVE OR ODD POSITIVE NEGATIVE

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("\nEnter Any Number : ");
scanf("%d",&n);

if(n>0)
{
  if(n%2==0)
  {
  printf("\nEVEN POSITIVE NUMBER ");
  }
  else
  {
  printf("\nODD POSITIVE NUMBER ");
  }
}
else if(n%2==0)
{
printf("\n EVEN NEGATIVE NUMBER ");
}
else
{
printf("\n ODD NEGATIVE NUMBER ");
}
getch();

}

Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...