Positive no negative no.
#include<stdio.h> void main()
{
int x;
clrscr();
printf(“enter the no”);
scanf(“%d”,&x);
If(x>0)
{
printf(“positive no”);
}
else
{
printf(“negative no”);
getch();
}
Positive no negative no.
#include<stdio.h> void main()
{
int x;
clrscr();
printf(“enter the no”);
scanf(“%d”,&x);
If(x>0)
{
printf(“positive no”);
}
else
{
printf(“negative no”);
getch();
}