• Write a program to print whether the given number is prime or composite.
#Don't spam :-!
Answers
Answered by
7
n=int(input("enter any number"))
if n℅2=0
then print("n is composite")
else:
print("n is prime")
Similar questions
Computer Science,
5 months ago
History,
5 months ago
English,
5 months ago
History,
9 months ago
Math,
9 months ago