#include <stdio.h>
int main()
{
int n;
{
int n;
printf("Enter a number\n");
scanf("%d", &n);
scanf("%d", &n);
if (n > 0)
printf("Greater than zero.\n");
else
printf("Less than or equal to zero.\n");
printf("Greater than zero.\n");
else
printf("Less than or equal to zero.\n");
return 0;
}
}
Output:
Enter a number
-45
Less than or equal to zero.
No comments:
Post a Comment