fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int b=0,i,a[5];
  6. float x;
  7. for(i=0;i<=4;i++) scanf("%d",&a[i]);
  8. for(i=0;i<=4;i++) b+=a[i];
  9. x=b/5;
  10. for(i=0;i>=x;i++) printf("%d",a[i]);
  11. printf("\n");
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5312KB
stdin
1 1 1 1 2
stdout