0% found this document useful (0 votes)
15 views1 page

Python Program for Quotient and Remainder

This document provides an algorithm and program design to accept two integer inputs, divide one by the other to get the quotient, use the modulus operator to get the remainder, and print out the results. The program flowchart shows variables being initialized, inputs being accepted, the quotient being calculated by integer division, the remainder being calculated using modulus, and the results being printed before ending.

Uploaded by

Exuge
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Python Program for Quotient and Remainder

This document provides an algorithm and program design to accept two integer inputs, divide one by the other to get the quotient, use the modulus operator to get the remainder, and print out the results. The program flowchart shows variables being initialized, inputs being accepted, the quotient being calculated by integer division, the remainder being calculated using modulus, and the results being printed before ending.

Uploaded by

Exuge
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Problem Definition

1. Create a program that accept two simultaneously integers. Print quotient and remainder.

Algorithm:
Input: a, b
Process: quo = a / b
rem = a% b
Output: quo, rem

Program Design

Flowchart

Start

a = 0; b = 0;
quo = 0;
rem = 0;

input(a, b)

quo = a / b

quo = a / b

print(quo, rem)

Stop

You might also like