1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
murzikaleks [220]
2 years ago
10

How can I get multiple user inputs in Java ? I want to be able to use it for subtraction, addition,division and multiplication.F

or example it should run like
How many numbers do you want to subtract?
4
Enter 4 numbers:
1
2
3
4
result:-8
Computers and Technology
1 answer:
Evgesh-ka [11]2 years ago
7 0
You can do something like this :

Scanner sc = new Scanner(System.in);
int[] nums = new int[4];

for(int i = 0; i < nums.length; i++) {
System.out.println("Enter next number: ");
nums[i] = sc.nextInt();
You might be interested in
What chage command should you enter at the comman prompt to set the password to jsmith expire after 60 days and gives a warning
Nat2105 [25]

Answer:

chage -M 60 -W 10 jsmith

Explanation:

The command chage -M 60 -W 10 jsmith is used to set the password to jsmith so that it will expires after 60 days and this command will also gives the warning 10 days prior to the expiration of the password.This command is for command prompt.We can also change the expiration and warning by changing the integers in the command respectively.

3 0
4 years ago
Can a msi b450 tomahawk motherboard fit into a darkflash dlm21 mesh micro atx tower
kobusy [5.1K]

Answer:

Use PCPartPicker

Explanation:

If you use PCPartPicker (extremely popular and good low prices), it will give you the best deals and give you information about every component compatibility.

7 0
3 years ago
Joshua wants to be a lawyer. He found the following table on the Bureau of Labor Statistics’ website to find out about the emplo
mars1129 [50]

The answer to your question is,

C) The number of lawyers will increase, so it may be difficult to find a job.

-Mabel <3

3 0
4 years ago
Read 2 more answers
The following image shows the number of orders Company A received in 2015-2020. A financial analyst wants to calculate the year-
abruzzese [7]

The step that the analyst take to apply the same formula to all adjacent years using the Macabacus’ Fast Fill Right shortcuts  is the use of the  Macabacus Excel Add-in.

<h3>What are the feature in the Formulas menu of the Macabacus Excel add-in?</h3>

The Macabacus Excel Add-in is known to be a formula auditing tools that aids  one to be able to know and correct any kinds of errors and other forms of inconsistencies in the financial models.

Note that it is one that tends to bring up the speed of the modeling process. The Excel add-in is a tool that aid the users to make some reliable links between the financial model and that of the PowerPoint or Word documents.

Hence, The step that the analyst take to apply the same formula to all adjacent years using the Macabacus’ Fast Fill Right shortcuts  is the use of the  Macabacus Excel Add-in.

Learn more about Macabacus from

brainly.com/question/1538272

#SPJ1

8 0
2 years ago
I think my knee....
SIZIF [17.4K]

Answer:

Explanation:

is broken.

4 0
3 years ago
Other questions:
  • Which modem settings should be configured on DSL or cable modems?
    14·1 answer
  • Technician A says that as volume decreases, pressure increases. Technician B says that as temperature increases, pressure decrea
    5·1 answer
  • A.<br> Post-It note<br> b.<br> notebook<br> c.<br> tutor<br> d.<br> spell check
    14·1 answer
  • Internet access is now available in what percentage of schools?
    7·2 answers
  • Build a state diagram for the “book” based upon the following information of the library.
    6·1 answer
  • Original list:0,0,0,0,0,0,0,0
    10·1 answer
  • Where are the worksheet tabs located
    7·1 answer
  • If a file you are opening for appending does not exist, the operating system will detect the missing file and terminate the oper
    14·1 answer
  • What is the best way of farming exotics in destiny?
    12·2 answers
  • PLEASE HELP!
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!