fibonacci Numbers

Dave Schaumann dave at cs.arizona.edu
Sat Apr 13 08:00:23 AEST 1991


In article <1991Apr12.051844.15063 at milton.u.washington.edu> amigo at milton.u.washington.edu (The Friend) writes:
>     Can someone send me source code for a routine to calculate 
>Fibonacci numbers to _x_ (x being input from user)? Additionally it'd
>be great if this found the PRIME numbers in the set. It could print its
>results as it went through (if that makes it any easier).

This sounds a lot like a freshman-level programming assignment to me...

Consider:
	o The definition of the Fibonacci sequence is usually no more than
	  one step of translation away from a working algorithm.
	o Finding prime numbers may be a little harder, but not much.

-- 
Dave Schaumann      | We're so sorry, Uncle Albert.  But the kettle's
dave at cs.arizona.edu | on the boil, and we're so *easly* called away...



More information about the Comp.lang.c mailing list