1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
tresset_1 [31]
3 years ago
5

One fragment of a given integer N can be selected and its digits reversed (replaced with a right to left version of themselves).

What is the maximum number that can be obtained this way from integer N
Mathematics
1 answer:
34kurt3 years ago
4 0

Integers are numbers without decimal points. The number could be positive, negative or zero

<h3>How to determine the maximum number from the integer</h3>

The maximum number from integer N can be determined using the following program written in Python, where comments are used to explain each line

#This prompts the user for input

num = input("Number: ")

#This iterates from 0 to 9

kount = [0 for x in range(10)]

# This iterates through the input, and updates the kount variable

for i in range(len(num)):

   kount[int(num[i])] = kount[int(num[i])] + 1

# This next two lines initialize the greatest number

greatestNum = 0

multiplier = 1

# This iterates through the kount array

for i in range(10):

   #The following is repeated while the current element is greater than 0

while kount[i] > 0:

    #This generates the greatest number

 greatestNum = greatestNum + ( i * multiplier )

 kount[i] = kount[i] - 1

 multiplier = multiplier * 10

#This prints the greatest number

print(greatestNum)

Read more about similar programs at:

brainly.com/question/15683939

You might be interested in
100 POINTS
elena-14-01-66 [18.8K]

Answer:

The slope is -2 because, for every value past on the x-coordinate, the line goes 2 values down.

Step-by-step explanation:

I hope that this helps! :)

8 0
3 years ago
Read 2 more answers
Which has a measure that is equal to the sum of the measures of the interior angles of a triangle?
Natalija [7]

The sum of the interior angles of any triangle is 180 degrees. It does not depend on which triangle we are discussing that this fact is true for all triangles. 180 degrees is a straight line.

3 0
3 years ago
Read 2 more answers
If you invest $600 at 5% interest compounded continuously, how much would you make after 6 years?
algol13

Answer:

809.915$

Step-by-step explanation:

Amount of money = Principal x e^(rate x year)

                              = 600 x e^(0.05 x 6)

                              = 809.915$

4 0
3 years ago
Read 2 more answers
What is (+8) + (+1) i need to know this for my math
Ipatiy [6.2K]

Answer:

+9

Step-by-step explanation:

all plus signs stay the same inside and out the parenthesis

6 0
3 years ago
(7-4) *5/3 I need help *= multiply /= division
VMariaS [17]

Answer:

5

Step-by-step explanation:

First u minus (because of these () ) witch is 3 and \frac{5}{3}  is a fraction so u do 3×\frac{5}{3} (u see that its not a ÷ sign because its a fraction) witch equals to 5

7 0
3 years ago
Other questions:
  • During 2002, the average person ate 200.8 pounds of meat. How much meat does a family of 3 people eat in year?
    5·2 answers
  • Solve the following system using any method.
    15·1 answer
  • Which of the following functions is graphed below?(:
    13·2 answers
  • Kona’s mother realized that her age is the difference of Kona’s age squared and four. If k represents Kona’s age, which expressi
    13·2 answers
  • After translating this figure 7 units left and 1 unit down, what is the final orientation of the transformed figure and which qu
    10·1 answer
  • Which point lies on the graph of the function shown below?
    9·1 answer
  • Help me on how to do this
    6·1 answer
  • Two numbers are graphed on the number lino bolow, suppose a third number, n, is graphed
    10·1 answer
  • HELP!!! Chords AB and BD intersect in circle O as shown in the diagram. Two of the angle measurements are marked. What is mCED?
    10·2 answers
  • DO ASAP. PLS
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!