problem. A character string that represents the number n, a number b1 that represents the base on which the number n is written, and a number b2 that is the base to convert the number n. Such that 10 <= n <= 20000000 y 2 <= b1, b2 <= 16. Entry A character string that represents the number n, a number b1 that represents the base on which the number n is written, and a number b2 that is the base to convert the number n. Such that 10 <= n <= 20000000 and 2 <= b1, b2 <= 16. Departure The number n converted to the base b2 Examples Input Example 1 7562

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
icon
Related questions
Question

Python problem.

A character string that represents the number n, a number b1 that represents the base on which the number n is written, and a number b2 that is the base to convert the number n. Such that 10 <= n <= 20000000 y 2 <= b1, b2 <= 16.

Entry
A character string that represents the number n, a number b1 that represents the base on which the number n is written, and a number b2 that is the base to convert the number n. Such that 10 <= n <= 20000000 and 2 <= b1, b2 <= 16.

Departure
The number n converted to the base b2

Examples

Input Example 1

7562
10
2
Output Example 1

1110110001010

Input Example 2

7562
10
16
Output Example 2

1D8A

Input Example 3

34AF6519
16
2
Output Example 3

110100101011110110010100011001

Input Example 4

3854922
11
3
Output Example 4

110120111222122

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr