12 lines
263 B
Python
12 lines
263 B
Python
# Q3
|
|
|
|
# Get values from user
|
|
num1 = int(input("Enter first number: "))
|
|
num2 = int(input("Enter second number: "))
|
|
|
|
# Calculate values
|
|
result = int(num1/num2)
|
|
remainder = num1%num2
|
|
|
|
# Print values
|
|
print(f"The result is {result}, and the remainder is {remainder}.") |