Feed Headline Animator

Determine whether the number is positive or negative or zero(If Statement).

Main()
{
int num;
printf(“Enter the number\n”);
scanf(“%d”,&num);
if(num >0)
printf(“num is pocitve =%d\n”,num);
if(num<0)
printf(“num is negative =%d\n”,num);
if(num=0)
printf(“num is zero =%d\n”,num);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment