题目: 题目: 输入一个正整数 repeat(0<repeat<10), 做repeat 次下列运算: 输入 2 个正整数 m 和 n (1<=m, n<=10000), 输出 m 和 n 之间所有的Fibonacci数。Fibonacci序列(第 1 项起):1 1 2 3 5 8 13 21 ..... // 这个是我精简后的代码,下面有一个雏形,精简代码很有趣的 // 大家可以把你以前的代码全部翻出来精简一下吧 #include <stdio.h> int main() { int repeat, m, n, f1, f2, f3; scanf("%d", &repeat); while(repeat-- && scanf("%d %d", &m, &n)) { f1 = f2 = 1; while(f1 <= n) { if(f1 >= m) printf("%d ", f1); f3 = f1 + f2; f1 = f2; f2 = f3; }puts(""); } return 0; } // 再一次精简代码! #include <stdio.h> int main() { int repeat, q = 1, m, n, f1, f2, f3; while( (q ? scanf("%d", &repeat) : repeat--), q = 0, repeat && s