Home
Computer-9
Computer-10
Computer-11
Computer-12
CTEVT
BBA
BCA
के अ मा वि , राजविराज
Download
Contact Me
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