Answer :
#include<stdio.h> //header file contains the function,decleraction and macro defination of key words used in code.
int main ()
{
int number; //adressing the variables
printf("Enter any number you like "); //output
scanf("%d",&number); //stores the input from the user
if (number>0)
{
printf("%d is the positive number",number); //output
}
else if (number<0)
{
printf("%d is the negative number",number); //output
}
else
{
printf("%d is zero",number); //output
}
}
Output :
0 Comments