Home
Computer-8
Computer-9
Computer-10
Computer-11
Computer-12
CTEVT
ICA@IGNOU
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