Upload files to "basic programming/1st task"

This commit is contained in:
2024-11-23 15:48:27 +02:00
commit b4ef6ebbac
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# 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}.")