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
Valentin [98]
3 years ago
5

What is output? c = 1 sum = 0 while (c < 10): c = c + 3 sum = sum + c print (sum)

Computers and Technology
1 answer:
Valentin [98]3 years ago
3 0

Answer:

21

Explanation:

The values of c that make it into the loop are 1, 4, 7.

The values that are added to sum are 3 higher, i.e., 4,7 and 10.

The sum of those is 21.

p.s. why did you not run the program yourself?

You might be interested in
Write a program that takes as command-line arguments an integer N and a double value p (between 0 and 1), plots N equally spaced
OlgaM077 [116]

Answer:

Please see below

Explanation:

Suppose N = 10. And you have these dots equidistant from each other, and probability = 0.3. According to the data provided in the question statement, we will then have forty-five pairs of points. The task is to draw lines amongst these pairs, all 45 of them, with a 30% probability. Keep in mind that every one of the 45 lines are independent.

A few lines of simple code (just some for loops) needed to run this is attached in the image herewith, .

 

8 0
3 years ago
It is a good idea to include your teacher’s name on a title page.
LenaWriter [7]

Answer: I think it all depends on the teacher because I know one of my teachers like when we put their name on our assignments. So I pick true

Explanation:

6 0
3 years ago
Read 2 more answers
To construct a battery with a current of 6 A, you would connect six 1 A cells
m_a_m_a [10]
A. in parallel.,<span>D. in series.</span>
6 0
3 years ago
Read 2 more answers
How many bytes is a yobibyte
Tanzania [10]
i think the answer is 1 x 10^24 bytes
6 0
3 years ago
Read 2 more answers
Click to move a stacked object to the top of the stack?
ira [324]
Click the one that is in the front, left click, bring backward, do it continually until you get it. or if you already have it, left click, bring front
7 0
3 years ago
Other questions:
  • ________ employs state-of-the-art computer software and hardware to help people work better together.
    13·1 answer
  • What is the purpose of the backoff on Ethernet networks?
    5·1 answer
  • Given the lists list1 and list2 that are of the same length, create a new list consisting of the last element of list1 followed
    13·1 answer
  • Why do i have to wait and watch videos
    11·1 answer
  • A<br> is a reduced-size version of a graphic image used to help recognize and organize pictures.
    5·1 answer
  • 16 to 19 year old drivers are how many more times likely to crash? 1.7,2.7,0.7 ,3.7
    12·2 answers
  • Which encryption standard goes with the WPA2 protocol?<br> AES<br> DES<br> TKIP<br> WPS
    15·1 answer
  • How do you get a potion of fire-protection in the overworld because I am having a hard time in the Nether? I will give away 14 p
    8·2 answers
  • Select the correct answer.
    10·1 answer
  • FCAPS is a network management functional model. FCAPS is an acronym that represents the focal tasks necessary to effectively man
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!