Pages
Question Bank
Computer 9
Computer 10
Computer 11
Computer 12
Bachelors
शिक्षक सेवा आयोग
Careers
Links
लोक सेवा आयोग
सिफारिस
Download
Contact
C program to test whether the supplied number is positive, negative or zero
C program to test whether the supplied number is positive, negative or zero
Answer:
#include<stdio.h>
int main()
{
int num;
printf("Enter any number");
scanf("%d",&num);
if(num>0)
printf("Positive number");
else if(num<0)
printf("Negative number");
else
printf("Zero");
return 0;
}
Newer Post
Older Post
Home
Back