Write an application that prompts a user for two integers and displays every integer between them. Display There are no integers between X and Y if there are no integers between the entered values. Make sure the program works regardless of which entered value is larger.

Answers

Answer 1

Answer:

x = int(input("Enter an integer: "))

y = int(input("Enter another integer: "))

if x > y:

   for number in range(y+1, x):

       print(number, end=" ")

elif y > x:

   for number in range(x+1, y):

       print(number, end=" ")

else:

   print("There are no integers between {} and {}".format(x, y))

Explanation:

*The code is in Python.

Ask the user to enter the two integers, x and y

Since we want our program to run regardless of which entered value is larger, we need to compare the numbers to be able to create the loop that prints the numbers.

Check if x is greater than y. If it is, create a for loop that iterates from y+1 to x-1 and print the numbers

Otherwise, check if y is greater than x. If it is, create a for loop that iterates from x+1 to y-1 and print the numbers

If none of the previous part is executed, print that there are no integers between


Related Questions

Can you help me in this question

Answers

Answer:

count = arry[0];

          for (i = 0; i < n; i++)

          {

              if (count>5);

              {

                  count;

              }

          }

       

       cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;

Explanation:

count = arry[0];

          for (i = 0; i < n; i++)

          {

              if (count>5);

              {

                  count;

              }

          }

       

       cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;

You are configuring NIC teaming on a server with two network adapters. You chose Switch Independent Mode. You now must choose between the two modes determining if one adapter is left offline or both adapters are functional. You require a mode for the highest throughput. What mode do you choose?

Answers

Answer:

The appropriate answer is "Active/Active mode".

Explanation:

Now just after the customers or clients respond to the traditional standards, the board is comprised the information rapport with the cloud service, which would be considered as Active mode.The car glides primarily somewhere at a specified constantly controlled rate of the conductor. Currently entering the grounding connection boosts the flow of electrons further into the receiver as well as the transmitter.

Thus the above is the correct solution.

Number are stored and transmitted inside a computer in the form of​

Answers

Number are stored and transmitted inside a computer in the form of ASCII code

What is the page table mainly for?

Answers

Answer: See explanation

Explanation:

A page table is used for the tracking and the location of different pages of a task in memory. It helps in showing the mapping of locations between the physical addresses and the virtual addresses.

A page table stores also has the page table entries and this is where the frame numbers are stored as well as the operational status.

what is SEO and SEM?

Answers

Answer:

SEO stands for “search engine optimization.” In simple terms, it means the process of improving your site to increase its visibility for relevant searches.

SEM, or search engine marketing, is the act of using paid strategies to increase search visibility.

At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 percent each year for the next five years. Design a program with a loop that displays the projected semester tuition amount for the next five years.

Answers

Answer:grhgrt

Explanation:

The program is an illustration of loops;

Loops are program statements used to perform repetition

The tuition program

The program written in Python, where comments are used to explain each action is as follows:

#This initializes the fee

fee = 6000

#The following loop is repeated 5 times

for i in range(5):

   #This calculates the fee, each year

   fee *= 1.02

   #This prints the calculated fee

   print(round(fee,2),end=" ")

Read more about loops at:

https://brainly.com/question/24833629

#SPJ6

A ___________ consists of a large number of network servers used for the storage, processing, management, distribution, and archiving of data, systems, web traffic, services, and enterprise applications.

Answers

Answer:

Data center

Explanation:

A network service provider can be defined as a business firm or company that is saddled with the responsibility of leasing or selling bandwidth, internet services, infrastructure such as cable lines to both large and small internet service providers.

Generally, all network service providers, internet service providers and most business organizations have a dedicated building or space which comprises of a large number of computer systems, security devices, network servers, switches, routers, storage systems, firewalls, and other network associated devices (components) typically used for remote storage, processing, management, distribution, and archiving of large amount of data, systems, web traffic, services, and enterprise applications.

Furthermore, there are four (4) main types of data center and these includes;

I. Managed services data centers.

II. Cloud data centers.

III. Colocation data centers.

IV. Enterprise data centers.

TRUE or FALSE: CSS is used to style web pages.

Answers

Answer:

true

Explanation:

HTML is the structure and CSS is the design

Other Questions
A submarine begins its descent from the surface of the water and dives 20 feet for each minute. What would be the depth of the submarine after 2/3 hours? what examples of moral complexity are in to kill a mockingbird Write the slope-intercept form of the equation for the line As poleis governadas pela aristocracia incentivaram o desenvolvimento filosofico por causa de suas caracteristicas urbanas. oque ta errado? Find the solution set of this inequality. Enter your answer in interval notation using grouping symbols. -2x+5 Solve for x:2(x+9)=1(x+1)+2 Riddles:High if sitting, low if standing?Clue: Pet hey you guys its your favorite gal, hopin in to ask a couple more questions for the better in me (im honestly just asking for points and for answers, thanks for being loyal as always ) Select the correct answer.Martin runs 100 meters in 15 seconds. What is the equation for d, the distance in meters that Martin covers per second?A. 15 + d = 100B. 100 + d = 15C. d 15 = 100D. d 100 = 15 which two processes would most likely cause metamorphic rocks to change into sediments You are configuring NIC teaming on a server with two network adapters. You chose Switch Independent Mode. You now must choose between the two modes determining if one adapter is left offline or both adapters are functional. You require a mode for the highest throughput. What mode do you choose? press the image to see the whole question What are the benefits of being 18-year-olds? Me podeis hacer el ejercicio 4? Graciass! Chaooooooo solve the simultaneous linear algebra quadratic equation 2x-y=8 3x-y=17 The y-coordinate if you move five units up from the ordered pair (22, 23) define the concept environmental personal mission statement and indicate four reasons why you think having it may enhance responsible living in your environment which comparison is correct?140.07 < 140.7140.07=140.7140.07 > 140.7 Why do you think Canada has such an abundance ofnatural resources? What is the slope-intercept form equation of the line that passes through (2, 4) and (4, 10)?O y = -3x - 2O y = -3x + 2O y = 3x + 2O y = 3x - 2 If d= the number of dogs, which variable expression represents he phase below? the sum of number of dogs and the 6 cats