fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int dave[5]={8,6,5,7,9};
  5. int a;
  6. int total=0;
  7. for(a=0;a<5;a++)
  8. {
  9. total+=dave[a];
  10.  
  11. }
  12. printf("%d",total);
  13. return 0;
  14. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
35