FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
programminginpython.com/arithmeticOperations.py at master · anilkumarreddyn/programminginpython.com · GitHub
anilkumarreddyn
/
programminginpython.com
Public
forked from
avinashn/programminginpython.com
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
programminginpython.com
/
arithmeticOperations.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (17 loc) · 641 Bytes
Breadcrumbs
programminginpython.com
/
arithmeticOperations.py
Copy path
File metadata and controls
20 lines (17 loc) · 641 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
__author__
=
'Avinash'
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
)
Back
|
FazBrowse Home
|
New Git URL