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]
2 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]2 years ago
5 0

Answer:

a

Step-by-step explanation:

You might be interested in
CAN SOMEONE HELP ME IN ALGEBRA PLEASE!
Reptile [31]
19,7,and 61 im not sure about the last one
8 0
3 years ago
The midpoint of GH are M(4,3) and D(5,-6). The coordinates of the endpoint are?
Phantasy [73]

Answer:

The endpoint coordinates are (3,12)

Step-by-step explanation:\frac{5+x^{2} }{2} =4 \frac{-6+y^{2} }{2} = 3

You multiply 4 by 2 which gives you 8 and write the equation5+x^{2} =8 then you subtract 5 from 8 to get 3 for the x coordinate.

You multiply 3 by 2 which gives 6 and writhe the equation-6+y^{2}=6 then you substitute the -6 for +6 and add +6 and 6 to get 12 for the y coordinate.

To check use the midpoint formula with coordinates D and your endpoint coordinates\frac{5+3}{2}=\frac{8}{2} =4 \\  \frac{-6+12}{2} =\frac{6}{2} =3 and you get the answer for the midpoint which is (4,3)

6 0
2 years ago
Help plz Find y when x = 15 if y = 6 when x = 30
lutik1710 [3]

Answer:Y=3

Step-by-step explanation:

7 0
2 years ago
The sum of the ages of Mr Lin and his son Ethan is 38 years. In three years' time, Mr Lin will be three times as old as his son.
Sati [7]

Answer:

Mr.Lin's present age is 30 years now. His son is 8 years old now.

Step-by-step explanation:

Let L = Mr.Lin's present age,

   S = his son's present age.

First equation  is

L + S = 38.       (1)

The second equation is  

L + 3 = 3*(S+3)   (2)   ("In three years' time, Mr.Lin will be three times as old as his son.")

From (1), express S = 38-L and substitute it into (2). You  will get

L + 3 = 3*((38-L)+3),   or

L + 3 = 114 - 3L + 9,

4L = 114 + 9 - 3,  

4L = 120,

L = 30.

8 0
3 years ago
Bobby will buy coffe and hot chocolate for his co-workers each cup of coffe costs $2.25 and each cup of hot chocolate costs $1.5
snow_lady [41]
He buys three cups of hot choclate cause 1.50*3= 4.50
and he buys 5 cups of coffe cause 2.25*5=11.25
and 11.25 + 4.50=15.75

3 0
3 years ago
Other questions:
  • According to a survey conducted by Netpop Research, 65% of new car buyers use online search engines as part of their car-buying
    8·1 answer
  • Is the statement “The absolute value of a number is always greater than its opposite” true?
    7·1 answer
  • Aimee must add together the following numbers:3.50 + 4.00 + (−1.25) + (−7.50) + 5.25 + 2.00 As her first step, Aimee writes:(3.5
    10·2 answers
  • Which term can be added to the list so that greatest common factor of the three terms is 12h^3? 36h^3 12h^6. 6h^3. 12h^2. 30h^4.
    7·1 answer
  • Solve 2/3 x > 8 or 2/3 x <4
    5·1 answer
  • N the sequence generated by the formula an = n – 4, which term has a value of 8?
    5·2 answers
  • Altogether, the members of an exercise club drink
    14·1 answer
  • I just need number 12 please show work if you can​
    9·1 answer
  • Find a number such that five more than one half the number is three times the number​
    5·1 answer
  • Solve for x. -3+8x-5=-8 A. -2 B. -1 C. -3/4 D. 0
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!