C : Program to find number is Positive , Negative or Zero

--

#include <stdio.h>

int main()
{
int num;

printf("Enter the number :");
scanf("%d", &num);

if(num > 0)
{
printf("%d is the positive number.");
}
else if(num < 0)
{
printf("%d is the negative number.");
}
else if(num == 0)
{
printf("%d is the zero.");
}

return 0;
}

--

--

Programmer Portfolio

Code enthusiast. Learning, practicing, and sharing my journey through various programming languages, one code at a time. 🚀💻