fork download
  1. #include <stdio.h>
  2. //フィボナッチ数列
  3. int rec(int n){
  4.  
  5. }
  6.  
  7. int main(void) {
  8. int n = 10;
  9. printf("フィボナッチ数列の第%d項は%d\n", n, rec(n));
  10. return 0;
  11. }
  12.  
  13.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
フィボナッチ数列の第10項は0