Home > Back-end >  C language problem
C language problem

Time:06-02

Using C language array output 20 before the Fibonacci sequence, and a prime number of a for loop to output the twenty items, can you tell me how to write?

CodePudding user response:

The Fibonacci sequence is not a certain value for the first two and, using a recursive, top 20 items, use a for loop, the Fibonacci function the value of an assignment to the array, and then to determine whether the element is a prime number


CodePudding user response:

Use recursion, don't use recursion, recursive into too often

Write yourself and ask questions posted code

Just want the source code, then baidu, is more

CodePudding user response:

Fun
reference 2 floor response:
use recursion, don't use recursion, recursive into too often

Write yourself and ask questions posted code

Just want the source code, then baidu, more is

All I want is a way of thinking, thank you

CodePudding user response:

reference 1/f, likes to do in my reply:
the Fibonacci sequence is not a certain value for the first two and, using a recursive, top 20 items, use a for loop, the Fibonacci function the value of an assignment to the array, and then determine whether the element is prime line

I just want a train of thought, thank you

CodePudding user response:

Write a function of judgment prime prime Numbers can be individually, by calling print it out

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related