From e7619f3980002c331753c703cf8d331e103e44f5 Mon Sep 17 00:00:00 2001 From: ramanuj760 <51733702+ramanuj760@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:41:26 +0530 Subject: [PATCH 1/2] Update add.py --- add.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/add.py b/add.py index c758648..921a710 100644 --- a/add.py +++ b/add.py @@ -8,7 +8,16 @@ print("the multiplication of two numbers is",e) f=a/b print("the division of two numbers is",f) - +g=a**b +print("b is power of a",a) +a+=1 +print("it show increment in a",a) +h=sqrt(a) +print("square root of a",h) +i=a//b +print("it is floor division it shows integer quotent ",i) +j=a%b +print("remainder if b divide a ",j) From 4fd2cc3020039c0ce656e34255566d2a96b7deba Mon Sep 17 00:00:00 2001 From: ramanuj760 <51733702+ramanuj760@users.noreply.github.com> Date: Thu, 1 Oct 2020 15:32:38 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 4118a97..83a6aeb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # Python1 python basic arithmetic program +num1 = int(input('Enter First number: ')) +num2 = int(input('Enter Second number ')) +add = num1 + num2 +dif = num1 - num2 +mul = num1 * num2 +div = num1 / num2 +floor_div = num1 // num2 +power = num1 ** num2 +modulus = num1 % num2 +print('Sum of ',num1 ,'and' ,num2 ,'is :',add) +print('Difference of ',num1 ,'and' ,num2 ,'is :',dif) +print('Product of' ,num1 ,'and' ,num2 ,'is :',mul) +print('Division of ',num1 ,'and' ,num2 ,'is :',div) +print('Floor Division of ',num1 ,'and' ,num2 ,'is :',floor_div) +print('Exponent of ',num1 ,'and' ,num2 ,'is :',power) +print('Modulus of ',num1 ,'and' ,num2 ,'is :',modulus)