Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1eb2b35

Browse files
Girilen Sayıların Tam Bölenlerini Bulma
1 parent 48b07ca commit 1eb2b35

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
def sayıSor():
2+
3+
a = input("Yeni sayı denemek istiyorsanız (Y), İşlemi tamamlamak için (T) tuşlayınız: ")
4+
if a == ("y") :
5+
return True
6+
elif a == ("Y") :
7+
return True
8+
9+
elif a == ("T"):
10+
return False
11+
elif a == ("t"):
12+
return False
13+
else:
14+
print("Yanlış giriş yaptınız.\nTekrar giriniz")
15+
sayıSor()
16+
17+
18+
def TamBölen(sayı):
19+
Tam=[]
20+
21+
for i in range(1,sayı+1):
22+
if (sayı % i == 0):
23+
Tam.append(i)
24+
return Tam
25+
kontrol = True
26+
27+
while kontrol == True:
28+
29+
sayı = int(input("Sayı giriniz: "))
30+
31+
print(TamBölen(sayı))
32+
33+
kontrol = sayıSor()
34+
35+
36+
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /