{"id":9135,"date":"2021-09-30T11:30:07","date_gmt":"2021-09-30T06:00:07","guid":{"rendered":"https:\/\/python-programs.com\/?p=9135"},"modified":"2021-11-22T18:35:30","modified_gmt":"2021-11-22T13:05:30","slug":"python-program-to-read-two-numbers-and-print-their-quotient-and-remainder","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-read-two-numbers-and-print-their-quotient-and-remainder\/","title":{"rendered":"Python Program to Read Two Numbers and Print Their Quotient and Remainder"},"content":{"rendered":"

Don’t stop learning now. Get hold of all the important Java fundamentals with the Simple java program example<\/a> guide and practice well.<\/p>\n

Given two numbers , the task is to print their quotient and Remainder in\u00a0 Python.<\/p>\n

Examples:<\/strong><\/p>\n

i)Floating Division<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

first number =45\r\nsecond number =17<\/pre>\n

Output:<\/strong><\/p>\n

The value of quotient after dividing 45 \/ 17 = 2.6470588235294117\r\nThe value of remainder after dividing 45 \/ 17 = 11<\/pre>\n

ii)Integer Division<\/strong><\/p>\n

Input:<\/strong><\/p>\n

first number =45\r\nsecond number =17<\/pre>\n

Output:<\/strong><\/p>\n

The value of quotient after dividing 45 \/ 17 = 2\r\nThe value of remainder after dividing 45 \/ 17 = 11<\/pre>\n

Program to Read Two Numbers and Print Their Quotient and Remainder in\u00a0 Python<\/h2>\n

Below are the ways to print the quotient and Remainder:<\/p>\n