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\n Subraction\n \Multiplication\n Division\n Percentage\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\n Subraction\n \Multiplication\n Division\n Percentage\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!" )
0 commit comments