@lakshayarora7/

ProductiveRuddyBighornedsheep

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##
## Demonstrating arithmetic in Python
 
a = int(input("Enter first number"))
b = int(input("Enter second number"))
 
## + Addition
print("Sum of inputs a + b:", a + b)
## - Subtraction
print("Subraction of inputs a - b:", a - b)
## * Multiplication
print("Multiplication of inputs a * b:", a * b)
## / Division
print("Division of inputs a / b:", a / b)
## % Modulo
print("Modulo a % b:", a % b)
## % Exponent
print("a raised to the power b:", a ** b)
## % Floor Division: Result restricted to zero decimal points
print("Floor Division a // b:", a // b)
##