Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
41 lines (35 loc) · 733 Bytes

File metadata and controls

41 lines (35 loc) · 733 Bytes
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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 1. Addition
var1=10
var2=30
sum=var1+var2
print("The sum of",var1,"and",var2,"is:",sum)
# 2. Subtraction
var1=50
var2=30
diff=var1-var2
print("The difference between",var1,"and",var2,"is:",diff)
# 3. Multiplication
var1=50
var2=30
product=var1*var2
print("The product of",var1,"and",var2,"is:",product)
# 4. Division
var1=50
var2=30
quotient=var1/var2
print("The quotient of",var1,"and",var2,"is:",quotient)
# 5. Modulus
var1=50
var2=30
rem=var1%var2
print("The remainder of",var1,"and",var2,"is:",rem)
# 6. Exponentiation
var1=5
var2=3
rem=var1**var2
print("The exponent of",var1,"and",var2,"is:",rem)
# 7. Floor Division
var1=10
var2=7
floordiv=var1//var2
print("The floor division between",var1,"and",var2,"is:",floordiv)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.