You are viewing a single comment's thread. Return to all comments →
float po = 0.0f; float neg = 0.0f; float ze = 0.0f; int n=arr.size(); for(int i=0;i0){ po++; } } float a =(float) (po/n); System.out.printf("%.6f%n",a); float b =(float) (neg/n); System.out.printf("%.6f%n",b); float c =(float) (ze/n); System.out.printf("%.6f%n",c);
Seems like cookies are disabled on this browser, please enable them to open this website
Plus Minus
You are viewing a single comment's thread. Return to all comments →
float po = 0.0f; float neg = 0.0f; float ze = 0.0f; int n=arr.size(); for(int i=0;i0){ po++; } } float a =(float) (po/n); System.out.printf("%.6f%n",a); float b =(float) (neg/n); System.out.printf("%.6f%n",b); float c =(float) (ze/n); System.out.printf("%.6f%n",c);