Plus 

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> int main() { int i ,arr[100],n; float l,m,k; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&arr[i]); {// poi nei zeo for(i=0;i<n;i++) if(arr[i]>0) { l++; } else if(arr[i]<0) { m++; } else if(arr[i]==0) { k++; } } printf("%f\n",l/n); printf("%f\n",m/n); printf("%f\n",k/n); }
Editor Settings
Theme
Key bindings
Full width
Lines