forked from hariom20singh/python-learning-codes
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArithmeticOperator.py
More file actions
Latest commit
29 lines (23 loc) · 482 Bytes
/
Copy pathArithmeticOperator.py
File metadata and controls
29 lines (23 loc) · 482 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
print('Arithmetic operator')
#1 Addition - to add two or more numbers
a=5
b=5.0
print(a+b)
#2 Subtraction - to subtract numbers
a=1
b=3
print(a-b)
#3Multiplication - to multiply numbers
a=4.5
b=8
print(a*b)
#4Division / - divide the value to equivalent given numbers
a=16
b=3
print(a/b)
#5 floored Division // - return the floor of a/b
print(a//b)
#6Remainder % - returns the remainder of a/b
print(a%b)
var=' this is Arithmetic operators '
print ( 'thankyou',var)