From 7451edff7692e86c5238ff7bc6659825e242a84e Mon Sep 17 00:00:00 2001 From: Sudipto Mallick <> Date: Tue, 2 Jan 2024 03:38:10 +0000 Subject: Quick backup, need to be rewritten --- python/code/1/4.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 python/code/1/4.py (limited to 'python/code/1/4.py') 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)) + -- cgit 1.4.1-2-gfad0