Question: Please answer in Java: Write an algorithm to in two different ways: to input 3 numbers and print (or output) the sum and the multiplication

Please answer in Java:

Write an algorithm to in two different ways: to input 3 numbers and print (or output) the sum and the multiplication of these 3 numbers(write an algorithm to): \

1. Print Enter any number

2. Input n1

3. Print Enter two more numbers

4. Input n2, n3

5. Let sum = n1+n2+n3

6. mult= n1*n2*n3

7. Print sum

8. Output mult

9. Stop

***note: this is the algorithm in one method, write the same algorithm in another way

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!