From 1951901b326b366dd0710a24686cf6731fafd4bd Mon Sep 17 00:00:00 2001 From: periyavicky06 Date: Mon, 27 Oct 2025 18:58:23 +0530 Subject: [PATCH] Refactor Arithmetic.py for improved output and operations Updated arithmetic operations to include modulus and corrected print formatting. --- Arithmetic.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Arithmetic.py b/Arithmetic.py index 592e81a..a91742d 100644 --- a/Arithmetic.py +++ b/Arithmetic.py @@ -1,9 +1,12 @@ + #Arithmetic operator a=int(input("Give the A value :")) b=int(input("Give the B value:")) -print("Addition :",a+b) -print("Subraction :",a-b) +print(f"Addition :a+b") +print(f"Subraction :a-b") print(f"Multiplication : {a*b}") -print("Divition :",a/b) -print("Floor Divition :",a//b) +print(f"Divition :a/b") +print(f"Floor Divition :a//b") print(f"Exponential :{a**b}") +print(f"Modules:a%b") +