write a program to input a number and test if it is a prime number
Answers
Answered by
1
Answer:
num = int(input("Enter a number: ")) if num > 1: for i in range(2,num): ... print(num,"is a prime number") literally have a doubt
Answered by
0
Answer:
See this example:
num = int(input("Enter a number: ")) if num > 1: for i in range(2,num): ... print(num,"is a prime number")
Explanation:
Please follow me
Similar questions