Create the logic for a program that continuously prompts a user for a numeric value until the

Question:

Create the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to the following methods:

  • A method that displays all whole numbers from 1 up to and including the entered number
  • A method that computes the sum of all the whole numbers from 1 up to and including the entered number
  • A method that computes the product of all the whole numbers up to and including the entered number
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: