Question: Python: Complete the following program that reads in an integer d and calculates ? where p is the product of all the integers between 1

Python:

Python: Complete the following program that reads in an integer d and

Complete the following program that reads in an integer d and calculates ? where p is the product of all the integers between 1 and 50 that are divisible by d and c is the number of integers between 1 and 50 that are divisible by d. For example, if d = 10, then the numbers between 1 and 50 that are divisible by 10 are 10, 20, 30, 40, and 50, so we calculate (10 x 20 x 30 x 40 x 50)/5 = 2400000.0 Print the average to 1 decimal place. If there are no numbers between 1 and 50 that are divisible by d, print 0.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!