CS107 M4 Assignments 1. Write a program that will prompt a message and let the user input two positive integers M and N (assuming 0

1 answer below »
3 questions to answer with the use of Python IDLE program


CS107 M4 Assignments 1. Write a program that will prompt a message and let the user input two positive integers M and N (assuming 0<>
Answered Same DayOct 25, 2021

Answer To: CS107 M4 Assignments 1. Write a program that will prompt a message and let the user input two...

Sathishkumar answered on Oct 26 2021
123 Votes
# Question - 1
print ("Enter 1st positive integers ")
M = int(input())
print ("Enter 2nd positive
integers ")
N = int(input())
# print data type
sum1 =0
for i in range(M, N+1):
print(i)
sum1= sum1+i

print("Sum is",sum1)
print("Average is ",sum1/N-M+1)
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here