fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i,a[10];
  5. a[0]=3;
  6. printf("%d\n",a[0]);
  7. for(i=1;i<10;i++){
  8. a[i]=a[i-1]+3;
  9. printf("%d\n",a[i]);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
3
6
9
12
15
18
21
24
27
30