➽ Program:-
#include<stdio.h>
int main()
{
int num;
printf("Enter a
Number: ");
scanf("%d", &num);
if(num >= 0)
printf("%d is a positive number\n", num);
else
printf("%d is a negative number", num);
return 0;
}
➽ Output:-
Enter a Number: 22
22 is a Positive number
Enter a Number: -4
-4 is a Negative number
0 Comments
Please do not enter any spam link in the comment section.