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
balandron [24]
3 years ago
15

Write some code that uses a loop to read such a sequence of non-negative integers, terminated by a negative number. When the cod

e exits the loop it should print the number of consecutive duplicates encountered. In the above case, that value would be 3.
Mathematics
1 answer:
Marysya12 [62]3 years ago
5 0

Answer:

a

Step-by-step explanation:

You might be interested in
Given f(x) = x -7 and g(x) = x^2 Find g(f(4))
mixer [17]
G(f(4)) = g(4-7) = g(-3) = (-3)² = 9

g(f(4)) = 9
3 0
3 years ago
PLEASEE HELP!
melamori03 [73]

Answer:

Two non zero vectors, a and b are parallel when they are scalar multiples of each other such that a = c·b where c is a scalar quantity.

Therefore, in order to find a vector that is parallel to the vector, b = (-2, -1), we multiply the vector, b by a scaler quantity

Step-by-step explanation:

Given that the vector b = (-2, -1) can be written as follows;

b = -2·i - j, we have;

\left | b \right | = √((-2)² + (-1)²) = √5

Therefore, we have;

The coordinates of the endpoint of the vector are (-2, 0) and (0, -1)

Therefore, the slope of the vector = (-1 - 0)/(0 - (-2)) = -1/2

The slope of parallel vectors are equal, which gives the slope of the parallel vector = -1/2 = (λ × (-1 - 0))/(λ ×(0 - (-2))

Therefore, a parallel vector is obtained from a vector by multiplying with a scaler product.

7 0
3 years ago
10. On one night, a group of 9 rats carried away 45 kg of food. What is the reduced ratio of rats to food weight
GenaCL600 [577]

Answer:

Number of rats : Food weight = 1 : 5

Step-by-step explanation:

Number of rats in the group = 9

Weight of food carried away by them = 45 kg

Ratio of the number of rats and food weight = \frac{\text{Number of rats}}{\text{Weight of food carried by the rats}}

                                                                          = \frac{9}{45}

                                                                          = \frac{1\times 9}{5\times 9}

                                                                          = \frac{1}{5}

Therefore, Number of rats : Food weight = 1 : 5

4 0
3 years ago
You want to put $2,000 in a simple intrest account.It has a 2.5% annual interest rate.How long will it take you to earn $500 in
PSYCHO15rus [73]
The answer is C ten years. 2.5 percent of 2000 is 50 so take 50 and divide it by 500 which equals 10
3 0
3 years ago
Read 2 more answers
What is the simplified form of the rational expression below 5x2-5/3x2+3x
Bingel [31]

Answer:

(5(x-1))/3x

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • PLZ HELP ASAP TANGENTS OF CIRCLES
    13·1 answer
  • Driving to your friend's house, you travel at an average rate of 35 miles per hour. On your way home, you travel at an average r
    13·1 answer
  • Choose the function
    7·1 answer
  • What is (3²-2³)⁶⁶ total​
    9·1 answer
  • What are the coordinates of the terminal point determined by t=10pi/3
    15·1 answer
  • Why is volume of a cone is written in cubic units
    6·1 answer
  • Dan invests £15000 into his bank account.
    7·1 answer
  • What is the value of X in degrees?
    14·1 answer
  • Find the distance between (2.3) and (0,6).
    13·1 answer
  • F(x) = -4x2 + 19<br> Find f(-7)
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!