finding fibonacci numbers

This is a discussion on finding fibonacci numbers within the C Programming forums, part of the General Programming Boards category; Hi, guys, I'm having problems with this short program. The version without functions is below and it does not work ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    99

    finding fibonacci numbers

    Hi, guys, I'm having problems with this short program. The version without functions is below and it does not work properly. I might be making a logical mistake somewhere...
    This program asks user for n, and displays its Fibonacci number calculated iteratively. Then the program continues calculating Fibonaccis and stops when it reaches a Fib that would not fit in a 100-cell array (one cell per digit). It is supposed to display the largest Fib that still fits in the array.
    I would appreciate if you could look at it with a "fresh" eye...
    Thanks
    Attached Files Attached Files
    • File Type: c f.c (1.8 KB, 79 views)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help in finding average of a class of numbers
    By hastefan2001 in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2009, 01:11 PM
  2. Replies: 2
    Last Post: 05-28-2009, 09:58 PM
  3. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  4. Adding Line numbers in Word
    By Mister C in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 06-24-2004, 08:45 PM
  5. A (complex) question on numbers
    By Unregistered in forum C++ Programming
    Replies: 8
    Last Post: 02-03-2002, 05:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21