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
F r e e p o i n t s e v e r y o n e a n d c r o w n f o r b e s t h u m o r :'D
Aleks04 [339]

Answer:

YAYYYYYYYY!!!!!!!!!!!

Explanation:

I WANT FREE POINTS!!!!!!!!!!!! YOU ARE AMAZING!!!!!!!!

8 0
3 years ago
Read 2 more answers
Which of the following was a policy created by Alexander Hamilton
sleet_krkn [62]

The policy that was created by Alexander Hamilton was the sale of national bank stock.

<h3>Who was Alexander Hamilton?</h3>

The man Alexander Hamilton is regarded as one of the founding fathers of the United States of America owing to the role that he played during and after the revolutionary war.

Now, the policy that was created by Alexander Hamilton was the sale of national bank stock.

Learn more about Alexander Hamilton:brainly.com/question/27837951

#SPJ1

Missing parts;

Which of the following was a policy created by Alexander Hamilton?

A. Sold of national bank stock

B. Ended certain diplomatic missions

C. Gave more federal offices to Democratic-Republican

D. Moving the capital to the District of Columbia

5 0
2 years ago
How do i become friends wit ppl on brainly
abruzzese [7]

Answer:

add button

Explanation:

4 0
3 years ago
A line has a slope of 1 4 and passes through the point (0. 2, 4 5 ). Find the value of b, the y-intercept. B =.
worty [1.4K]
3.75 is the correct answer to your question mate
4 0
3 years ago
WHAT IS 3/5 x 4/1 pls help
ddd [48]

Answer:

2.4

Explanation:

6 0
3 years ago
Other questions:
  • When your brakes fail, first try
    10·1 answer
  • Although many people believe that the only academic path after high school is a college degree if you want to get a good job, th
    5·2 answers
  • A sponge and a bar of soap occupy the same amount is space, but the soap is much more dense than the sponge. Why must this be?
    10·1 answer
  • Which is an example of a reflex?
    15·2 answers
  • 1. What are some benefits of representing data sets using frequency<br> distributions?
    6·1 answer
  • PS4 or XBOX Which one is the best
    15·2 answers
  • Which reaction will most likely take place based on the activity series? li &gt; k &gt; ba &gt; ca &gt; na &gt; mn &gt; zn &gt;
    14·1 answer
  • According to the collision theory, what are two of the conditions that are needed for a reaction to occur?.
    5·1 answer
  • How would an audio recording of this excerpt help establish the setting of the play? through an increase in volume at certain po
    7·1 answer
  • Texas courts differ from legislatures in that
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!