import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int []a=new int[20]; int number1=0,number2 = 0; double sum=0; for (int i=0;i<20;i++) a[i]=sc.nextInt(); for (int i=0;i<20;i++){ if (a[i]==0) System.out.println(); else if (a[i]<0) number1=number1+1; else { sum = sum + a[i]; number2=number2+1; } } double v=sum/number2; System.out.println(number1); System.out.printf("%.2f",v); } }
0.0分
0 人评分