Computer Science, asked by chaitalisarve9, 1 month ago

Write a python program to print all prime number ans interval
Computer chapter -11
please answer my question ​

Answers

Answered by Anonymous
3

Explanation:

#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

else:

print(num)

Please mark it as a brainliest answer..

Attachments:
Answered by SourabhY1
1

may this will help you

Explanation:

try to mark brainlist DHANYAVAD

Attachments:
Similar questions