Python program to print N prime numbers Get link Facebook X Pinterest Email Other Apps - September 17, 2021 count=1ex=3n=int(input("ENTER N : "))print(2)while count!=n: tmp=0 for i in range(2,ex): if ex%i==0: tmp+=1 if tmp==0: count+=1 print(ex) ex+=1 Get link Facebook X Pinterest Email Other Apps Comments
Python program to check if it is a Duck Number or not - September 17, 2021 t=r=x=fag=0 n=int(input("ENTER N : ")) while n!=0: t=n%10 if t==0: fag+=1 n=n//10 if fag>0: print("It's a Duck Number") else: print("It's not a Duck Number") Read more
Comments
Post a Comment