#include<stdio.h>
int main()
{
int num, sum = 0;
int count = 0;
do
{
printf("Input a number:");
scanf("%d", &num);
if (num == 0)
{
printf("sum = %d, count = %d\n", sum,count);
break;
}
if (num > 0)
{
count++;
sum += num;
continue;
}
if (num < 0)
{
continue;
}
} while (num!=0);
}