Question: write a phyton program that takes two integers as input. assumes the user will input integers for x and y x must be less or

write a phyton program that takes two integers as input. assumes the user will input integers for x and y

x must be less or equal to y. If not your program should repeatedly ask user to input values for x and y until they input values for x and y such that x<=y

b. once you received the inputs for x and y your program should output the following

the number of integers between x and y(both included)

the integers between x and y(both included) on aline

the integers between x and y that are divisible by 5 and 10 but not by 15

the prime numbers between x and y(both included). prime numbers that are divisible by 1 and itself only such as 22,3,5,7,11,13 etc.

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!