From 2921ef97ecd7d08a68c08ebcf3d74c5e4d7f78f2 Mon Sep 17 00:00:00 2001 From: Umut <143949134+LinuxUsersLinuxMint@users.noreply.github.com> Date: Sat, 23 Dec 2023 16:14:31 +0300 Subject: [PATCH] Some regulations. --- Basic_Maths.py | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/Basic_Maths.py b/Basic_Maths.py index 4e1563a..33c0a42 100644 --- a/Basic_Maths.py +++ b/Basic_Maths.py @@ -5,56 +5,49 @@ Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint""" +global result + def addition(x,y,ResultDialog): x=x y=y - global result result=x+y - print("{3} {0} + {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} + {2} = {3}". format(ResultDialog,x,y,result)) def Extraction(x,y,ResultDialog): x=x y=y - global result result=x-y - print("{3} {0} - {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} - {2} = {3}". format(ResultDialog,x,y,result)) def Multiplication(x,y,ResultDialog): x=x y=y - global result result=x*y - print("{3} {0} * {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} * {2} = {3}". format(ResultDialog,x,y,result)) def Division(x,y,ResultDialog): x=x y=y - global result result=x/y - print("{3} {0} / {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} / {2} = {3}". format(ResultDialog,x,y,result)) def Percentage(x,y,ResultDialog): x=x y=y - global result result=x%y - print("{3} {0} % {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} % {2} = {3}". format(ResultDialog,x,y,result)) def FullDivision(x,y,ResultDialog): x=x y=y - global result result=x//y - print("{3} {0} // {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} // {2} = {3}". format(ResultDialog,x,y,result)) def TakingExponents(x,y,ResultDialog): x=x y=y - global result result=x ** y - print("{3} {0} ** {1} = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} ** {2} = {3}". format(ResultDialog,x,y,result)) def TakingRoots(x,y,ResultDialog): x=x y=y - global result result=x ** (1/y) - print("{3} {0} ** (1/{1}) = {2}". format(x,y,result,ResultDialog)) + print("{0} {1} / (1/y) = {2}". format(ResultDialog,x,result)) def SqaureRoot(x,ResultDialog): x=x - global result result=x ** (1/2) - print("{3} {0} ** (1/2) = {1}". format(x,result,ResultDialog)) + print("{0} {1} ** (1/2) = {2}". format(ResultDialog,x,result)) \ No newline at end of file