Que : write a c programm to find the number is positive or negative.
Ans :
#include<stdio.h>
int main()
{
int x;
printf("Enter any number :) ");
scanf("%d",&x);
if(x>0)
{
printf("This is positive number");
}
if(x<=0)
{
printf(" Zero ya Negative Baby :) ");
}
return 0;
}
***********************************************************************************
.....................Now its time to show Input and Output of the question.........................................
***********************************************************************************
.....................................If number is negative or zero the he show this :..........................
[Free download] Download Pro Blogger Template and Make Your Blog Like Pro:
ReplyDeleteFree to Download and Use
For Any Help WhatsApp Me:+91 9883282271