Enter your name: Hunter Chase Sanford
Enter your course: I.T
Enter your year and section: 2-A
Enter the academic year: 2021-2022
Enter first number: 6
Enter second number: 2
Hello, Hunter Chase Sanford! You are currently enrolled in I.T 2-A, A.Y. 2021-2022.
The sum is: 8
The difference is: 4
The product is: 12
The quotient is: 3
name = input('Enter your name: ')
course = input('Enter your course: ')
ys = input('Enter your year and section: ')
ay = input('Enter the academic year: ')
n1 = int(input('Enter first number: '))
n2 = int(input('Enter second number: '))
print(f'Hello, {name}! You are currently enrolled in {course} {ys}, A.Y. {ay}.')
print(f'The sum is: {n1 + n2}')
print(f'The difference is: {n1 - n2}')
print(f'The product is: {n1 * n2}')
print(f'The quotient is: {int(n1 / n2)}')
Comments
Leave a comment