//This is a program to find the entered number is positive negative or 0
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("\n\nEnter any number: ");
scanf("%d",&num);
if(num>0)
{
printf("\n\nNumber=%d is a positive Number",num);
}
else if(num<0)
{
printf("\n\nNumber=%d is a negative number",num);
}
else
{
printf("\n\nThe Entered number is Zero");
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("\n\nEnter any number: ");
scanf("%d",&num);
if(num>0)
{
printf("\n\nNumber=%d is a positive Number",num);
}
else if(num<0)
{
printf("\n\nNumber=%d is a negative number",num);
}
else
{
printf("\n\nThe Entered number is Zero");
}
getch();
}