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