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
Calculate the density and specific gravity of ammonia gas from the information that 8.9L of the gas weighs 6.8g
Verdich [7]

Answer:

cr

Explanation:

cffc

6 0
3 years ago
What do if pregers?????????
ipn [44]

Answer:

Get checked up first to see if your body would be able to handle it. Look at the options, is your partner willing enough to take resposibility or not. Check if you have enough things like money for you to take care of your child.

6 0
3 years ago
Read 2 more answers
Select an alternative to using credit.
chubhunter [2.5K]
All of the above is the correct answer
5 0
3 years ago
Read 2 more answers
Which phrase best describes the harlem renaissance?.
Alecsey [184]

Answer:

The Harlem Renaissance <u>was an intellectual and cultural revival of African American music, dance, art, fashion, literature, theater and politics centered in Harlem, Manhattan, New York City, spanning the 1920s and 1930s.</u>

<h2>I hope this helps you !! </h2>
4 0
3 years ago
Bakugou needs help
Anvisha [2.4K]

Answer:

B

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • Rock A and rock C are 60 ft away from each other. The left air balloon has a diagonal distance of 73 ft away from rock C and the
    6·1 answer
  • 4^x-3=6 please help
    12·2 answers
  • GUYS THIS IS VERY SIRIOUS AND I WILL MAKE YOU ALL WHO HELP ME A BRAINILIST IF I GET A C+ OR AN A OR B+ I WILL GIVE THAT PERSON 1
    8·2 answers
  • Which of the following pieces of dialogue from the text best supports the answer to question 5?
    13·1 answer
  • Which statement best describes dickon's character in the secret garden?.
    10·1 answer
  • What mass of water can be heated from 250c to 500c by the addition of 2825 j? specific heat of water = 4. 18 j/g/k.
    6·1 answer
  • At which event must special care be taken when preparing food
    8·1 answer
  • Marco randomly pulled a marble out of a bag and then returned the marble to the bag. He did this 10 times. Three times the marbl
    14·1 answer
  • An organ, such as the human liver, is made up of specialized _______ that work together to perform a specific function
    7·1 answer
  • According to Sumner, what separates the wealthy people in society from the poor people? how they have handled their opportunitie
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!