C program to find whether a number is positive or negative or zero
Answers
Answered by
3
answer of your question
Attachments:
Answered by
1
Answer:#include<stdio.h>
int main()
{
int num;
scanf("%d",&num);
if(num==0)
{
printf("%d is equal",num);
}
else if(num>=0)
{
printf("%d is positive",num);
}
else
{
printf("%d is negative",num);
}
}
Explanation:
Similar questions