.. www.engineerscur.blogspot.com: C language program to count positive and negative numbers from given numbers and when 0 entered exit

C language program to count positive and negative numbers from given numbers and when 0 entered exit


//C language program to count positive and negative numbers from given numbers and  exit when 0 entered


#include<stdio.h>
#include<conio.h>
void main()
{
            int n,nc-=0,pc=0;
            clrscr();
            read:scanf(“%d”,n);
if(n<0)
{           nc++;
            goto read;
}
else if(n>0)
{
            pc++;
goto read;
}
else
{
            goto exit:
}
exit:
print(“negative no.=%d \npositive no.:=%d”,nc,pc);

getch();
}