kawaiikittiesandpupp
kawaiikittiesandpupp kawaiikittiesandpupp
  • 12-05-2022
  • Computers and Technology
contestada

The following code has which kind of error?

total = 0

x = 0

while x < 10:

total = total + x

x = x + 1


A. syntax

B. runtime

C. logic

D. fatal

(it would also be helpful to me to say where the error is but you don't have to)​

Respuesta :

kirabowen15
kirabowen15 kirabowen15
  • 12-05-2022

Answer:

There would be a logic error.

Explanation:

The count for x should have been initialized before addint it to the variable total.

Answer Link

Otras preguntas

How long should you try to think about an SAT Math question before either implementing a strategy or guessing? Question 37 options: 45 seconds 20 seconds
What is the missing reason in the proof? A.) segment addition B.) Congruent Segments Theorem C.) Transitive Property of Equality D.) Subtraction Property of Equ
how do you solve number 13 and 14?
Why does the human population continue to grow exponentially answers?
Jade’s weekly paycheck is $306.25. She makes $8.75 per hour. Divide to find the number of hours per week Jade works. I kinda got stumped and might need some hel
Jonathan bought a new computer for $1,728,using the electronics stores finance plan. He will pay $96 a month for 18 months. Which equation can Jonathan use to f
5) How have the wireless web and peer-to-peer networking helped small businesses compete with large corporations?
a motorcycle cost is $3,124 what is the value of each digit
HELP! In " The Lady or the Tiger?" the author writes that the young man opened the door on the right " without the slightest hesitation. " Then the author break
Which NIMS management characteristic may include gathering, analyzing, and assessing weather service data from technical specialists?