|
1 | 1 | #!/usr/bin/python3 |
2 | | -from inputden import * |
3 | 2 | "Copyright© 2023 LinuxUsersLinuxMint" |
4 | 3 | "Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır." |
5 | 4 | "Python Calcutator All Rights Reserved under the GPL(General Public License)." |
6 | 5 | "Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint" |
7 | 6 | "A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint" |
8 | 7 |
|
| 8 | +command=input('calc> ') |
| 9 | +about="Python Calcutator CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2" |
| 10 | + |
9 | 11 | if command=="calc": |
10 | 12 | print("calc> Transactions You Can Enter: ") |
11 | 13 | print("collect\nExtraction\n\Impact\nDivide\nPercentage\nabout") |
12 | | - number1 , number2 , process |
| 14 | + number1=input('{0} Enter The 1st number: '. format(command)) |
| 15 | + number2=input('{0} Enter The 2st number: '. format(command)) |
| 16 | + process=input('{0} Enter the Transaction You Want to Perform: '. format(command)) |
| 17 | + addition=float(number1)+float(number2) |
| 18 | + subraction=float(number1)-float(number2) |
| 19 | + multiplication=float(number1)*float(number2) |
| 20 | + division=float(number1)/float(number2) |
| 21 | + Percentage=float(number1)%float(number2) |
13 | 22 | if process=="collect": |
14 | 23 | print("{0} + {1} = {2}". format(number1,number2,addition)) |
15 | 24 | elif process=="Extraction": |
|
34 | 43 | elif command=="web-site": |
35 | 44 | print("linuxuserslinuxmint.github.io") |
36 | 45 | elif command=="ver": |
37 | | - print("Version: 0.1.7 (Last Updated September 8 , 2023 , 18:08)") |
| 46 | + print("Version: 0.2 (Last Updated September 17 , 2023 , 14:43)") |
38 | 47 | elif command=="licence": |
39 | 48 | print("This Software is protected under the GPL2 license") |
40 | 49 | else: |
|
0 commit comments