//Mean and Count the +ve and -ve numbers until -1000
#include
#include
main()
{
	int a;
	int pos_count=0,neg_count=0;
	int pos_sum=0,neg_sum=0;
	clrscr();
	printf("Enter the Values\n");
	scanf("%d",&a);
	while (a!=-1000)
	{
		if (a > 0)
		{
			pos_sum=pos_sum + a;
			pos_count=pos_count+1;
		}
		else if (a < 0)
		{
			neg_sum=neg_sum + a;
			neg_count=neg_count+1;
		}
		scanf("%d",&a);
	}
	printf("Number of Positive numbers=%d\n",pos_count);
	printf("Mean of Positive numbers  =%d\n",pos_sum);
	printf("Number of Negative numbers=%d\n",neg_count);
	printf("Mean of Negative numbers  =%d\n",neg_sum);
	getch();
}