Ask for a number of code

xiaoxiao2021-03-05  22

Main () {Int a = 0, b = 1, c = 2, d; for (D = 1; D <= 20; D , C , B ) A = C; Printf ("% D", A); Getch ();

The one above is wrong.

Win-TC 1.91 test used.

There is a score sequence 2/1, 3/2, 5/3, 8/5, 13/8, 21/13 ...

Ask the top 20 sum of this number.

Main () {INT D; FLOAT A = 0, B = 1, C = 2; for (D = 1; D <= 20; D ) {a = A C / B; B = C; c = C b;} printf ("% f", a); getCh ();}

I have changed a few sides of the code, the first side of writing, did not figure out something. The second side is incorporated, the type of the third side is wrong.

The more abundant

转载请注明原文地址:https://www.9cbs.com/read-38524.html

New Post(0)