## Description

COMP9021 PRINCIPLES OF PROGRAMMING

$ python3 quiz_1.py

Enter two integers, the second one being strictly positive: 0 7

Here are the generated digits: [6, 6, 0, 4, 8, 7, 6]

The integer made from these digits is: 6604876

Here is the greedy increasing subsequence of values, horizontally displayed:

——

——–

Here are the nonzero values, displayed as stairs:

——

——

—-

——–

——-

——

$ python3 quiz_1.py

Enter two integers, the second one being strictly positive: 20 8

Here are the generated digits: [2, 4, 1, 5, 9, 2, 0, 6]

The integer made from these digits is: 24159206

Here is the greedy increasing subsequence of values, horizontally displayed:

—

—-

—–

———

Here are the nonzero values, displayed as stairs:

—

—-

–

—–

———

—

——

2 COMP9021 PRINCIPLES OF PROGRAMMING

$ python3 quiz_1.py

Enter two integers, the second one being strictly positive: 55 11

Here are the generated digits: [1, 3, 2, 4, 1, 2, 4, 1, 5, 7, 8]

The integer made from these digits is: 13241241578

Here is the greedy increasing subsequence of values, horizontally displayed:

–

—

—-

—–

——-

——–

Here are the nonzero values, displayed as stairs:

–

—

—

—-

–

—

—-

–

—–

——-

——–

$ python3 quiz_1.py

Enter two integers, the second one being strictly positive: 104 5

Here are the generated digits: [0, 3, 3, 6, 5]

The integer made from these digits is: 3365

Here is the greedy increasing subsequence of values, horizontally displayed:

—

——

Here are the nonzero values, displayed as stairs:

—

—

——

—–

QUIZ 1 3

$ python3 quiz_1.py

Enter two integers, the second one being strictly positive: 165 10

Here are the generated digits: [0, 0, 6, 1, 7, 3, 2, 6, 5, 9]

The integer made from these digits is: 61732659

Here is the greedy increasing subsequence of values, horizontally displayed:

——

——-

———

Here are the nonzero values, displayed as stairs:

——

–

——-

—

—

——

—–

———

$ python3 quiz_1.py

Enter two integers, the second one being strictly positive: 321 12

Here are the generated digits: [4, 6, 2, 5, 8, 7, 5, 3, 9, 7, 6, 6]

The integer made from these digits is: 462587539766

Here is the greedy increasing subsequence of values, horizontally displayed:

—-

——

——–

———

Here are the nonzero values, displayed as stairs:

—-

——

—

—–

——–

——-

—–

—

———

——-

——

——

## Reviews

There are no reviews yet.