Results 1 to 2 of 2
  1. #1
    erichfx is offline Member
    Join Date
    Jan 2013
    Posts
    2
    Rep Power
    0

    Default Fibonacci sequence program that only prints the n'th digit in the sequence

    Thank you Jos!
    Last edited by erichfx; 01-23-2013 at 06:56 PM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default Re: Fibonacci sequence program that only prints the n'th digit in the sequence

    Quote Originally Posted by erichfx View Post
    I am just unsure of how to reference to that nth digit that is inputted by the user, and ONLY print that nth digit and not the entire sequence.
    Take that println( ... ) statement out of the loop (so it won't print each and every value) and stick it back in after the loop ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Fibonacci Sequence Problem
    By Zigster in forum New To Java
    Replies: 10
    Last Post: 07-06-2012, 09:54 PM
  2. Replies: 8
    Last Post: 03-10-2011, 03:16 AM
  3. Fibonacci sequence using iterative and recursive method
    By baumboards in forum New To Java
    Replies: 5
    Last Post: 03-02-2011, 06:57 PM
  4. Fibonacci sequence
    By ŖΫ ỏ Ңόρę in forum New To Java
    Replies: 6
    Last Post: 03-25-2010, 06:59 AM
  5. Linked list sequence and array sequence
    By Predz in forum New To Java
    Replies: 1
    Last Post: 12-31-2009, 01:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •