Answer to Question #231982 in Python for dnyanesh

Question #231982

You are given a positive integer N. Your task is to find the number of positive integers K <= N such that K is not divisible by any of the following numbers 2, 3, 4, 5, 6, 7, 8, 9, 10.

int(inpu)t=,11,12,200,10


1
Expert's answer
2021-09-01T23:56:33-0400
N=int(input("Please input a positive integer: "))
Num=0
for K in range (1,N+1):
    if (N%K==0):
        Num +=1
print(Num)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS