complete this code

num1 = int(input("6: "))
num2 = int(input("8: "))

total =

for num in range(num1, num2+1):
total += num

print("The total is ", total)

1 answer

num1 = int(input("6: "))
num2 = int(input("8: "))

total = 0

for num in range(num1, num2+1):
total += num

print("The total is ", total)
Similar Questions
  1. The following program does not do what the programmer intended it to do:num1 = input("Input a number: ") num2 = input("Input a
    1. answers icon 1 answer
  2. fix the syntax errornum1 = int(input("6: ")) num2 = int(input("8: ")) total = 21 for num in range(num1, num2+1): total += num
    1. answers icon 1 answer
  3. Consider the following high-level program:Uint_8 NUM1 = 10, NUM2 = 0, NUM3; While (NUM1 != NUM2) { NUM1 --; NUM2 ++; NUM3 = NUM1
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions