fork download
  1. #include <stdio.h>
  2. void main(){
  3. int a[10],
  4. sum=0,
  5. i;
  6. for(i=0;i<10;i++){
  7. scanf ("%d",&a[i]);
  8. }
  9. for(i=0;i<10;i++){
  10. sum=sum+a[i];
  11. }
  12. printf("%d",sum);
  13. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
2083129485