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
Anvisha [2.4K]
4 years ago
9

Determine the output of the following code segment:

Computers and Technology
1 answer:
Nataly [62]4 years ago
7 0

Answer:

The output to the given code as follows:

Output:

10

100

64

36

16

4

0

4

16

36

64

Explanation:

In the given java code, an integer variable "i" and an array number is defined, which size is 10, in the next step two for loop is declared, that can be described as follows:

  • In the first loop, array use loop variable "i" use, which minus the value of 5 and multiplies by 2, and it will calculate the square of that number.
  • In the next step, a for loop is declared, that prints these array number variable square.
You might be interested in
Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for inputs: 1 2 4 3
kobusy [5.1K]

Answer:

Explanation:

I'm going to add a python program for this example, step by step:

  • We declare 4 variables for our zoo, zoo quantity, and the average.
  • We make the operation for the average where sum the zoo and divide with the quantity
  • In the last step, we print the variable avg_owls.

num_owls_zoo1 = 1

num_owls_zoo2 = 2

num_owls_zoo3 = 3

num_owls_zoo4 = 4

zoos = 4

avg_owls = 0.0

avg_owls=(num_owls_zoo1+num_owls_zoo2+num_owls_zoo3+num_owls_zoo4)/zoos

print('Average owls per zoo:', int(avg_owls))

6 0
3 years ago
Can someone please explain this issue to me..?
Airida [17]

Answer:

try going to your settings and clear the data of the app,that might help but it if it doesn't, try deleting it and then download it again

5 0
3 years ago
Read 2 more answers
Discuss two things you want to know about driving
Zigmanuir [339]

always stay on the right side

never text and drive


3 0
3 years ago
What is logical memory?
Eva8 [605]
Logical memory is the address space, assigned to a logical partition, that the operating system perceives as its main storage.
6 0
3 years ago
How do you chose a profile pic on brainly?
pogonyaev

Answer:

Go to the profile page and click on the profile image

6 0
3 years ago
Other questions:
  • Our company is only interested in purchasing a software upgrade if it leads to faster connectivity and data sharing. The old sof
    7·1 answer
  • ?the single most effective security measure for digital devices is to password protect access to them.
    5·1 answer
  • Which is missing in most areas that do not have Karst topography?
    10·2 answers
  • Dr. Laos gets a referral for a 6 month old who has become listless and stopped eating lately. Her pediatrician wanted her to be
    15·1 answer
  • The process of using a computer to write, design, and assemble documents is called A. desktop publishing. B. scanning. C. consul
    7·1 answer
  • Size of a MAN can range from ​
    5·1 answer
  • I really need help with this question
    14·1 answer
  • What are some disadvantages of using a word processor over a type writer?​
    7·1 answer
  • A small company with 100 computers has hired you to install a local area network. All of the users perform functions like email,
    9·1 answer
  • Which key doesn't relate to keyboard A:return key B :enrollment key C: delete key D:tab key
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!