Computer Science, asked by vikky682, 1 year ago

C program to find whether a number is positive or negative or zero

Answers

Answered by officialrohitsharma
3

answer of your question

Attachments:
Answered by karthickram758
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