Hi everybody , i don’t get fully how to do it
Create a program in C that receives integers from the user until a zero or negative number is entered and outputs the number of positive numbers obtained, the minimum, maximum, and average values among the numbers entered. #include <stdio.h> int main() { int a,sum =0; int sum1=0; float mid=0; printf("Vvedit perche chuslo: "); scanf("%d",&a); sum +=1; while(a>0) { printf("Vvedit nastypne chuslo: "); scanf("%d",&a); { if(a>0){ sum +=1; sum1 +=a; mid = (sum1/sum); } } } printf("kilkist dodatnih chusel %d\n",sum); printf("ceredne chuslo %.2f",mid) }