Read Two Numbers and Print Their Quotient and Remainder in python

Share on facebook
Share on twitter
Share on pinterest

In this Basic Python Program, we will have a look at How to “read two numbers and print their quotient & remainders” with the help of Python Programming Language.

Python Program To Read Two Numbers and Print Their Quotient and Remainder

a=int(input("Enter the first number: "))

b=int(input("Enter the second number: "))

quotient=a//b

remainder=a%b

print("Quotient is:",quotient)

print("Remainder is:",remainder)

In the above basic python program, we have printed to quotient & remainder of two bers.

 

 

Subscribe to our Newsletter

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Share this post with your friends

Share on facebook
Share on google
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *