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.


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

Results 1 to 2 of 2

Thread: Re: questions

  1. #1
    Junior Member
    Join Date
    Jun 2019
    Thanked 0 Times in 0 Posts

    Default Re: questions

    Write a while loop, do..while and for loop to count from 100 to 200 by 5s.

    --- Update ---

    Write a program to find all even numbers between 100 and 200 using the while, do..while and for
    loop (use if statement to identify even number)

    Write a program to display multiples of 3 less than 200.
    4. Write a program that displays a table showing the numbers 1 to 10 and their squares. For example:-

    Number Number Squared
    1 1
    2 4
    3 9
    4 16

    Write a program similar to question 1, but let the user enter the maximum value to display.

    Write a program to develop a game. It is called the guessing game. You put a number (of your
    choice between 1 to 10) in the program. If the user enters the number you had chosen, congratulate
    the user, by printing “Congratulations! You did it!”. If he/she chooses a number less than your
    choice, print “Your guess is low, try again!”. And if the number is more than your choice, print
    “Your guess is high, try again!” The user must be asked to enter the number as long as he/she gets
    the number right.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,455 Times in 2,406 Posts

    Default Re: questions

    Moved to own thread.
    Please don't add your questions to existing thread.

    What have you tried? Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. questions
    By fahid in forum Java Theory & Questions
    Replies: 1
    Last Post: December 5th, 2012, 04:42 AM
  2. List of my Java3D Questions, and Proguard questions
    By Zachary1234 in forum Java SE APIs
    Replies: 0
    Last Post: November 16th, 2012, 09:40 PM
  3. Need help with some questions!
    By goha14 in forum Java Theory & Questions
    Replies: 6
    Last Post: March 27th, 2012, 08:01 PM
  4. Many questions
    By SharpT in forum What's Wrong With My Code?
    Replies: 11
    Last Post: January 18th, 2011, 09:56 PM
  5. A few questions
    By adenverd in forum Java Theory & Questions
    Replies: 3
    Last Post: May 26th, 2010, 03:34 AM