Skip to content

Commit 132c7e0

Browse files
Updated Calc-Lite 0.2.8
1 parent f8c8c85 commit 132c7e0

File tree

2 files changed

+36
-38
lines changed

2 files changed

+36
-38
lines changed

EN/calc.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
# Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
66
# A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
77

8-
cmd=str(input('calc> '))
8+
cmd=str("calc> ")
99

10-
if cmd=="calc":
11-
print("calc> Transactions you can enter: ")
12-
print("Addition\nSubraction\n\Multiplication\nDivision\nPercentage\n 1,2,3,4")
13-
n1=float(input('{0} Enter The 1st Number: '. format(cmd)))
14-
n2=float(input('{0} Enter The 2st Number: '. format(cmd)))
15-
process=input('{0} Enter the Transaction You Want to Perform: '. format(cmd))
16-
if process=="1":
17-
print("{0} + {1} = {2}". format(n1,n2,n1+n2))
18-
elif process=="2":
19-
print("{0} - {1} = {2}". format(n1,n2,n1-n2))
20-
elif process=="3":
21-
print("{0} * {1} = {2}". format(n1,n2,n1*n2))
22-
elif process=="4":
23-
print("{0} / {1} = {2}". format(n1,n2,n1/n2))
24-
elif process=="5":
25-
print("{0} % {1} = {2}". format(n1,n2,n1%n2))
26-
else:
27-
print("Invalid Process!")
10+
print("calc> Transactions you can enter: ")
11+
print("Addition\nSubraction\n\Multiplication\nDivision\nPercentage\n 1,2,3,4")
12+
n1=float(input('{0} Enter The 1st Number: '. format(cmd)))
13+
n2=float(input('{0} Enter The 2st Number: '. format(cmd)))
14+
process=input('{0} Enter the Transaction You Want to Perform: '. format(cmd))
15+
if process=="1":
16+
print("{0} + {1} = {2}". format(n1,n2,n1+n2))
17+
elif process=="2":
18+
print("{0} - {1} = {2}". format(n1,n2,n1-n2))
19+
elif process=="3":
20+
print("{0} * {1} = {2}". format(n1,n2,n1*n2))
21+
elif process=="4":
22+
print("{0} / {1} = {2}". format(n1,n2,n1/n2))
23+
elif process=="5":
24+
print("{0} % {1} = {2}". format(n1,n2,n1%n2))
25+
else:
26+
print("Invalid Process!")

TR/calc.py

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
# Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
66
# A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
77

8-
cmd=str(input('calc> '))
8+
cmd=str("calc> ")
99

10-
if cmd=="calc":
11-
print("calc> Girebileceğiniz işlemler: ")
12-
print("top\ncık\n\carp\nbol\nyuzde\n 1,2,3,4")
13-
s1=float(input('{0} 1. sayiyi giriniz: '. format(cmd)))
14-
s2=float(input('{0} 2. sayiyi giriniz: '. format(cmd)))
15-
islem=input('{0} Gerçekleştirmek İstediğiniz İşlemi Giriniz: '. format(cmd))
16-
if islem=="1":
17-
print("{0} + {1} = {2}". format(s1,s2,s1+s2))
18-
elif islem=="2":
19-
print("{0} - {1} = {2}". format(s1,s2,s1-s2))
20-
elif islem=="3":
21-
print("{0} * {1} = {2}". format(s1,s2,s1*s2))
22-
elif islem=="4":
23-
print("{0} / {1} = {2}". format(s1,s2,s1/s2))
24-
elif islem=="5":
25-
print("{0} % {1} = {2}". format(s1,s2,s1%s2))
26-
else:
27-
print("Geçersiz İşlem")
10+
print("calc> Girebileceğiniz işlemler: ")
11+
print("top\ncık\n\carp\nbol\nyuzde\n 1,2,3,4")
12+
s1=float(input('{0} 1. sayiyi giriniz: '. format(cmd)))
13+
s2=float(input('{0} 2. sayiyi giriniz: '. format(cmd)))
14+
islem=input('{0} Gerçekleştirmek İstediğiniz İşlemi Giriniz: '. format(cmd))
15+
if islem=="1":
16+
print("{0} + {1} = {2}". format(s1,s2,s1+s2))
17+
elif islem=="2":
18+
print("{0} - {1} = {2}". format(s1,s2,s1-s2))
19+
elif islem=="3":
20+
print("{0} * {1} = {2}". format(s1,s2,s1*s2))
21+
elif islem=="4":
22+
print("{0} / {1} = {2}". format(s1,s2,s1/s2))
23+
elif islem=="5":
24+
print("{0} % {1} = {2}". format(s1,s2,s1%s2))
25+
else:
26+
print("Geçersiz İşlem")

0 commit comments

Comments
 (0)