fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i,s;
  5. int a[6];
  6. typedef int * stair;
  7. stair b;
  8. a[0]=83;
  9. a[1]=13;
  10. b=&a[2];
  11. s=0;
  12. for(i=2;i<5;i++){
  13. *b=a[i-2]%a[i-1];
  14. s+=*b;
  15. b++;
  16. }
  17. printf("%d\n",s);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
10