Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Arithmetic Operations
num1 = 10 num2 = 20 sum = float(num1) + float(num2) min = float(num1) - float(num2) mul = float(num1) * float(num2) div = float(num1) / float(num2) print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) print('The subtraction of {0} and {1} is {2}'.format(num1, num2, min)) print('The multiplication of {0} and {1} is {2}'.format(num1, num2, mul)) print('The division of {0} and {1} is {2}'.format(num1, num2, div))
run
|
edit
|
history
|
help
1
Please
log in
to post a comment.
global 3
regu
Quick sort
PyRegChars
H.W5
kenken1
ASICC art
guesssss
16jan
BubbleSort
Please log in to post a comment.