Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Help

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help

    Hi all

    Can someone help me and answer the following questions:

    1- Write a program to find sum of all integers greater than 100 and less than 200 that are divisible by 7?

    2- Write a java program to display the Fibonacci series
    Hint: Fibonacci series: 0,1,1,2,3,5,8,13,21,34,55,……….
    Hint: Use while loop

    Thanks

  2. #2
    Member
    Join Date
    Sep 2012
    Posts
    128
    Thanks
    1
    Thanked 14 Times in 14 Posts

    Default Re: Help

    How would you check a number is divisible by 7?

    Make an attempt and show us your code.

  3. #3
    Member Chris.Brown.SPE's Avatar
    Join Date
    May 2008
    Location
    Fort Wayne, Indiana
    Posts
    190
    Thanks
    1
    Thanked 31 Times in 31 Posts

    Default Re: Help

    In case you didnt know. The Fibonacci series starts with 0 and 1 then you add together the previous 2 results to get the next result 0+1=1, 1+1=2, 2+1=3, 3+2=5....

    I second Starstreak. We're not going to write the code for you. Give it a shot and if you have issues we'll help you work through it.
    Writing code is your job, helping you fix and understand it is mine.

    <-- Be sure to thank and REP (Star icon) those who have helped you. They appreciate it!