Write a program to find the number is positive or negative using if else

//this is program to find the number is positive or negative
#include<stdio.h>
#include<conio.h>
void main()
{
int num;

printf("\n\nEnter any number: ");
scanf("%d",&num);

if(num>0)
{
printf("\n\nThe entered number is Positive");
}
else
{
printf("\n\nThe entered number is Negative");
}

getch();
}

Previous
Next Post »