Using one-dimensional array, create a java program that reads three integer numbers and displays the numbers. If there are duplicate inputs, compute and display the sum for each input.
Sample Run:
Enter three numbers: 8 2 2
Numbers are: 8 2 2
DuplicateInputs: 2
Sum is 4
Answers
Answered by
1
Answer:
Your answer is in the attachment.
See the program with output.
Attachments:
Similar questions