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
Fittoniya [83]
2 years ago
14

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.
Computers and Technology
1 answer:
olga2289 [7]2 years ago
4 0

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

You might be interested in
Complete the function ConvertToDecadesAndYears to convert totalYears to decades and years. Return decades and years using the Ti
Sergeeva-Olga [200]

Answer:

It is a C++ program. The complete function   ConvertToDecadesAndYears which takes totalYears as parameter and convert totalYears to decades and years is provided in the attached document.

Explanation:

The explanation is provided in the attached document.

The screenshot of the complete code along with its output is attached.

6 0
3 years ago
You _____ a worksheet to emphasize certain entries and make the worksheet easier to read and understand. a.save b.print c.format
choli [55]
You format a worksheet to emphasize certain entries and make the worksheet easier to read and understand.
6 0
2 years ago
Which choice is not a form of antivirus scanning that compares known virus patterns to scanned files
Ira Lisetskai [31]

The choice that is not a form of antivirus scanning that compares known virus patterns to scanned files is called; Heuristic scanning

<h3>Antivirus Detection</h3>

The correct answer is Heuristic Scanning from the options seen online. This is because Heuristic scanning is a method utilized by many computer antivirus programs to detect previously unknown computer viruses, as well as new variants.

Thus, heuristic scanning doesn't compare known virus patterns to scanned files.

Read more about antivirus detection at; brainly.com/question/17209742

8 0
1 year ago
What are three types of audio editing techniques?
Karo-lina-s [1.5K]

Answer:

If you're on edge then it's

         C) non-destructive, destructive, and constructive

Explanation:

8 0
3 years ago
A friend of yours is having trouble getting good Internet service. He says his house is too remote for cable TV—he doesn’t even
ira [324]

Answer:

LTE installed Internet

Explanation:

LTE Installed Internet is a residential Internet solution that uses Verizon's 4G LTE network to bring reliable, high-speed Internet service to customers with limited broadband options and this will meet the need of the friend since he uses Verizon for his cell, has a good signal, frustrated with satellite service and in need of a good internet service from home.

3 0
3 years ago
Other questions:
  • Write a program for Horizon Phones, a provider of cellular phone service. Prompt a user for maximum monthly values for talk minu
    6·1 answer
  • The last 64 bits of an ipv6 address are the interface identifier. what is frequently used to specify the interface identifier?
    14·1 answer
  • BOTH INTERNATIONAL &amp; INLAND Which procedure(s) shall be used to determine risk of collision?
    14·1 answer
  • In a typical system design specification, the _____ section describes the constraints, or conditions, affecting a system, includ
    11·1 answer
  • Write an expression that executes the loop body as long as the user enters a non-negative number. Note: If the submitted code ha
    14·1 answer
  • Why is a class called a factory of objects
    11·1 answer
  • Implement the function printTwoLargest that inputs an arbitrary number of positive numbers from the user. The input of numbers s
    14·1 answer
  • why does planets orbit the sun? asap i give brainlist i know it on that subject i dont know what else goes with it
    10·1 answer
  • Which operating system might cause the desktop background to change unexpectedly?
    7·1 answer
  • Which type of internet connection allows for high-speed bi-directional data communication over a hybrid fiber-coaxial (HFC) conn
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!