回答編集履歴

1

n>2 条件判定を増やす

2022/10/20 01:36

投稿

fenyun
fenyun

スコア20

test CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+ n>2 条件判定を増やす
2
3
  ```ここに言語を入力
3
4
  int a1,a2;
4
5
 
@@ -29,9 +30,12 @@
29
30
  printf("The answer is: %d",q);//answer is 5
30
31
  return 0;
31
32
  }
33
+ if(n>2){
32
- d= fibocompute(p,q,n);
34
+ d= fibocompute(p,q,n);
33
- printf("The answer is: %d",d);
35
+ printf("The answer is: %d",d);
34
- return 0;
36
+ return 0;
37
+ }
38
+ return 0;
35
39
  }
36
40
 
37
41
  ```