Introduction to C language
Program to check for +ve,-ve and zero value




/*to check for +ve,-ve and zero value*/

main()
{
int n; clrscr(); printf("\nEnter a number :"); scanf("%d",&n); if(n>0) printf("\nIt is positive "); else if(n<0) printf("\nIt is negative "); else printf("\nItis equal to zero"); getch(); }


 
-----------------------------------------------------------------------------------------
please mail comments to vgdarur@gmail.com
 

 

www.iforerunner.com