Last active
December 17, 2018 15:17
-
-
Save Ektaynot/8205f1cb211f4804befed2f34078663a to your computer and use it in GitHub Desktop.
-Sorunlar: -Sadece 2 sayı ile işlem yapılabiliyor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
print("Toplama (1)") | |
print("Çıkarma (2)") | |
print("Çarpma(3)") | |
print("Bölme(4)") | |
print("Üstlü sayı bulma(5)") | |
print("Bir Sayının Karekökünü bulma(6)") | |
print("Çıkış(7)") | |
d = int(input("işlemi şeçin")) | |
if d > 7: | |
print("Sadece 1,2,3,4,5,6 veya 7") | |
if d== (7): | |
break | |
say1 = float(input("İlk sayıyı gir")) | |
if d == (5): | |
üstü = float(input("Üstünü girin:")) | |
print(("Sonuç:"),say1**üstü) | |
continue | |
if d == (6): | |
print(("Sonuç:"),say1**(1/2)) | |
continue | |
say2 = float(input("İkinci sayıyı gir(yada üstü)")) | |
if d == (1): | |
print(("Sonuç:"),say1 + say2) | |
if d == (2): | |
print(("Sonuç:"),say1 - say2) | |
if d == (3): | |
print(("Sonuç:"),say1*say2) | |
if d == (4): | |
print(("Sonuç:"),say1/say2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment