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
galben [10]
3 years ago
7

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?.
SAT
1 answer:
andrew11 [14]3 years ago
7 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/26426553

You might be interested in
PLIZ HELP me i ned help
lapo4ka [179]
D

shsjsjjssjsjsjskjsjskaksk sorry i need more characters apparently
5 0
3 years ago
A consumer group is investigating the number of flights.
Nutka1998 [239]
Is this all that is there?
8 0
3 years ago
Which three statements about the gilded age are true.
kap26 [50]

Answer:

i don't know I don't see them

4 0
2 years ago
Using any available sources search for information about cats and dogs as pets brainly.
Neporo4naja [7]

Answer:

ability to form strong, meaningful bonds with their owners.

Explanation:

i searched it up

4 0
3 years ago
How long is a whole year
luda_lava [24]
365 days and 12 months
5 0
3 years ago
Read 2 more answers
Other questions:
  • Please help me with this
    7·1 answer
  • Determine the value of x in the figure.
    15·2 answers
  • The main purpose of the federal reserve act of 1913 was to brainly
    5·1 answer
  • Why do states need to be concerned about laws passed in other states.
    6·1 answer
  • If ∠1 ≅ ∠2 ≅ ∠3, ∠4 ≅ ∠5, and m∠4 = m∠3 + 10, what is m∠5?.
    13·1 answer
  • How do I solve for proportional relationships, equivalent fractions, and radius + diameter?? help only if u know :(​
    5·1 answer
  • Why would you expect sugar to dissolve faster in hot tea than in iced tea
    6·1 answer
  • In what type of plate boundary did subduction occur? in what type of plate boundary did new crust form? in what type of plate bo
    13·1 answer
  • It is widely known in kevin's social club that he is the most stubborn and inflexible member. kevin complains that all his frien
    14·1 answer
  • Oregon project skills inventory checklist braille skills
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!