#include <stdio.h>
#include <conio.h>
void main()
{
int number;
clrscr();
printf(“Enter a number\n”);
scanf (“%d”, &number);
if (number > 0)
printf (“%d, is a positive number\n”, number);
else
printf (“%d, is a negative number\n”, number);
}
Output
Enter a number
-10
-10, is a negative number
Latest posts by Mohit Arora (see all)
- MongoDB Operators Tutorial – What are Different Operators Available? - October 5, 2019
- MongoDB Projection Tutorial : Return Specific Fields From Query - March 9, 2019
- MongoDB Index Tutorial – Create Index & MongoDB Index Types - July 6, 2018