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