-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27ef283
commit e522e4f
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
#!/usr/bin/python3 | ||
# Basic_Maths ile yapılmış bir calcutator programıdır. (Basic_Maths) kullanımına örnek olması amaçlı yazılmıştır. | ||
# It is a calculator program made with Basic_Maths. It was written to serve as an example of (Basic_Maths) usage. | ||
|
||
from Basic_Maths import * | ||
number1=int(input('N1: ')) | ||
number2=int(input('N2: ')) | ||
select=str(input('Select (Add, Ext, Mul, Div, Per, FullDiv, TakeEx): ')) | ||
|
||
resultdialog = str("Result:") | ||
|
||
if select=="Add": | ||
addition(number1,number2,"Result:") | ||
addition(number1,number2,resultdialog) | ||
elif select=="Ext": | ||
Extraction(number1,number2,"Result:") | ||
Extraction(number1,number2,resultdialog) | ||
elif select=="Mul": | ||
Multiplication(number1,number2,"Result:") | ||
Multiplication(number1,number2,resultdialog) | ||
elif select=="Div": | ||
Division(number1,number2,"Result:") | ||
Division(number1,number2,resultdialog) | ||
elif select=="Per": | ||
Percentage(number1,number2,"Result:") | ||
Percentage(number1,number2,resultdialog) | ||
elif select=="FullDiv": | ||
FullDivision(number1,number2,"Result:") | ||
FullDivision(number1,number2,resultdialog) | ||
elif select=="TakeEx": | ||
TakingExponents(number1,number2,"Result:") | ||
TakingExponents(number1,number2,resultdialog) | ||
else: | ||
print("Invalid Process...!") | ||
print("Invalid Process...!") |