summary refs log tree commit diff stats
path: root/python/code/1/4.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/code/1/4.py')
-rw-r--r--python/code/1/4.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/code/1/4.py b/python/code/1/4.py
new file mode 100644
index 0000000..7579373
--- /dev/null
+++ b/python/code/1/4.py
@@ -0,0 +1,8 @@
+from math import gcd
+a = int(input('Enter first number: '))
+b = int(input('Enter second number: '))
+print('Sum:', a + b)
+print('Product:', a * b)
+print('Difference:', a - b)
+print('GCD:', gcd(a, b))
+