write a program in python to find quotient and remainder by dividing bigger number to smaller number..
the answer is:
b=int(input("give bigger number:"))
s=int(input("give smaller number:"))
q=b//s
r=b%s
print("quotient:",q)
print("remainder:",r)
if anything is incorrect please correct me please
Answers & Comments
```python
b = int(input("Enter the bigger number: "))
s = int(input("Enter the smaller number: "))
# Check if the smaller number is not zero to avoid division by zero error
if s == 0:
print("The smaller number cannot be zero.")
else:
q = b // s
r = b % s
print("Quotient:", q)
print("Remainder:", r)
```
This added check ensures that the user does not input zero for the smaller number, as dividing by zero would cause an error.