Student name- Sachin Page-5
Roll no- 48 D.O.P-19/09/2025
Course- BCA AI&DS
PROBLEM STATEMENT 5- Write a python program to implement arithmetic
Operation.
OBJECTIVE- To understand the implementation of various arithmetic
Operation.
EXPLANATION- Arithmetic operations are the basic mathematical operations
that we used to perform calculations on numbers. They form the foundation
of mathematics and are used in almost every field of study.
SOURCE CODE-
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
# Performing arithmetic operations
print("\nArithmetic Operations:")
print("Addition: ", a + b)
print("Subtraction: ", a - b)
print("Multiplication: ", a * b)
print("Division: ", a / b if b != 0 else "Undefined (division by zero)")
print("Modulus: ", a % b if b != 0 else "Undefined (modulus by zero)")
print("Exponentiation: ", a ** b)
Student name- Sachin Page-5
Roll no- 48 D.O.P-19/09/2025
Course- BCA AI&DS
OUTPUT-
Enter first number: 10
Enter second number: 3
Arithmetic Operations:
Addition: 13
Subtraction: 7
Multiplication: 30
Division: 3.3333333333333335
Modulus: 1
Exponentiation: 1000