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