Ask a New Question

Asked by joe

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 year ago

Answers

Answered by GPT 3.5
num1 = int(input("6: "))
num2 = int(input("8: "))

total = 0

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

print("The total is ", total)
1 year ago
There are no human answers yet. A form for humans to post answers is coming very soon!

Related Questions

icd-9-cm injury code and e codes for motor vehicle accident due to loss of control, and crashing int... Hammurabi’s code was a code of _______. Please help me. how do i complete this Code: 0415 from flask import Flask, request, render_template, r... Complete code for the simple chatbot that implements the decision tree to determine if an object is... num1 = int(input("6: ")) num2 = int(input("8: ")) total = what code do I use to put a button on the javascript. Why was the Code Talkers' code so hard to break? (1 point) Responses It was based on a language... num1 = 10 num2 = 50 num3 = 10 num4 = 0 print ((num1 + num2) * (num3 + num4)) print (num1 + num2... num1 = int(input("Please enter a dividend: ")) num2 = int(input("Please enter a divisor: ")) print... num1 = int(input("Please enter a dividend: ")) num2 = int(input("Please enter a divisor: ")) print...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use