Write a program in Python to accept to accept m and n and display all the
prime numbers between m to n
Answers
Answered by
0
Python Program to Print all Prime Numbers between an Interval
- #Take the input from the user:
- lower = int(input("Enter lower range: "))
- upper = int(input("Enter upper range: "))
- for num in range(lower,upper + 1):
if num > 1:
- for i in range(2,num):
- if (num % i) == 0:
break.
Answered by
1
Explanation:
Sumit is writing a program to accept the salary of employees in a list and
count the number of employees who have salaries greater than 50000, but
he is confused with some statements. You have to help him in completing
Similar questions