From 32bee43e55a984465895ccee4f62a861d5839498 Mon Sep 17 00:00:00 2001 From: dragonman164 <56438908+dragonman164@users.noreply.github.com> Date: Sun, 20 Oct 2019 19:59:08 +0530 Subject: [PATCH 1/5] Add files via upload --- python/mathematicaloperators.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 python/mathematicaloperators.py diff --git a/python/mathematicaloperators.py b/python/mathematicaloperators.py new file mode 100644 index 0000000..514ae90 --- /dev/null +++ b/python/mathematicaloperators.py @@ -0,0 +1,11 @@ +#this file contains some of the very basic mathematical calculations +a=int(input()) #input numbers +b=int(input()) +print(a+b) #add two nos +print(a-b) #subtract two nos +print(a**b) #raise 5 to the power two +print(a//b) #5 divide by 2 with integer typecasting +print(a*b) #multiply of 2 nos. +print(a/b) #division of two nos with float typecasting +print(a%b) #remainder of two nos. division + From 23092690b2275b0eeaa9a7b92d467df3da689798 Mon Sep 17 00:00:00 2001 From: dragonman164 <56438908+dragonman164@users.noreply.github.com> Date: Sun, 20 Oct 2019 20:52:29 +0530 Subject: [PATCH 2/5] Add files via upload --- mathematicaloperators.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mathematicaloperators.cpp diff --git a/mathematicaloperators.cpp b/mathematicaloperators.cpp new file mode 100644 index 0000000..a87dc3f --- /dev/null +++ b/mathematicaloperators.cpp @@ -0,0 +1,15 @@ +#include +using namespace std; +int main() +{ +int a,b; +cin>>a>>b; //input of two numbers +cout< Date: Sun, 20 Oct 2019 20:54:34 +0530 Subject: [PATCH 3/5] Add files via upload --- C++/mathematicaloperators.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 C++/mathematicaloperators.cpp diff --git a/C++/mathematicaloperators.cpp b/C++/mathematicaloperators.cpp new file mode 100644 index 0000000..a87dc3f --- /dev/null +++ b/C++/mathematicaloperators.cpp @@ -0,0 +1,15 @@ +#include +using namespace std; +int main() +{ +int a,b; +cin>>a>>b; //input of two numbers +cout< Date: Sun, 20 Oct 2019 20:59:17 +0530 Subject: [PATCH 4/5] Delete mathematicaloperators.cpp --- mathematicaloperators.cpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 mathematicaloperators.cpp diff --git a/mathematicaloperators.cpp b/mathematicaloperators.cpp deleted file mode 100644 index a87dc3f..0000000 --- a/mathematicaloperators.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include -using namespace std; -int main() -{ -int a,b; -cin>>a>>b; //input of two numbers -cout< Date: Sun, 20 Oct 2019 21:06:46 +0530 Subject: [PATCH 5/5] Add files via upload --- C/mathematicaloperators.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 C/mathematicaloperators.c diff --git a/C/mathematicaloperators.c b/C/mathematicaloperators.c new file mode 100644 index 0000000..ffd785c --- /dev/null +++ b/C/mathematicaloperators.c @@ -0,0 +1,13 @@ +#include +int main() +{ +int a,b; +scanf("%d%d",a,b); //input of two numbers +printf("%d\n",a+b); //sum of two numbers +print("%d\n",a-b); //difference of two numbers +printf("%d\n",a%b); //modulo i.e. remainder of division of two numbers +printf("%d\n",a/b); //type casting of division by int +printf("%d\n",a*b); //multiplication of two nos. +return 0; +} +