summary refs log tree commit diff stats
path: root/python/code/02_num_ops.py
diff options
context:
space:
mode:
authorSudipto Mallick <smlckz@termux-alpine>2024-01-13 09:28:10 +0530
committerSudipto Mallick <smlckz@termux-alpine>2024-01-13 09:28:10 +0530
commit8fb719f58f91d1f1f187a1db974682fb3736ee05 (patch)
tree506e070c7900cc5e3fb31000dbd1a39e95809c61 /python/code/02_num_ops.py
parent53d75846cc95a3af5d90c01b5ef010818b4adcf7 (diff)
downloadzadania-8fb719f58f91d1f1f187a1db974682fb3736ee05.tar.gz
Changes to project structure of Python assignments
As was directed to remove assignments.
Diffstat (limited to 'python/code/02_num_ops.py')
-rw-r--r--python/code/02_num_ops.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/code/02_num_ops.py b/python/code/02_num_ops.py
new file mode 100644
index 0000000..7579373
--- /dev/null
+++ b/python/code/02_num_ops.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))
+