Consider the following function h.
def h(n):
s = True
for i in range(1,n+1):
if i*i == n:
s = False
return(s)
The function h(n) given above returns False for a positive number n if and only if:
n is an odd number.
n is a prime number.
n is a perfect square.
n is a composite number.
Answers
Answered by
0
Answer:
trying to get energy to do this but I am not sure
Similar questions