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
oksian1 [2.3K]
3 years ago
12

Write a complete program to read two integers and display the number of integers that lie between them, including the integers t

hemselves. for example, four integers are between 3 and 6: 3, 4, 5, and 6.
Computers and Technology
1 answer:
Lyrx [107]3 years ago
6 0
#python:
min=input ("Gimmie an integer: ")
max=input ("Gimmie another integer: ")

for c in range(int(min), int(max) + 1):
    print (c, "", end="")
#in: 1 3
#out: 1 2 3
#I don't know pascal
// java
import java.util.Scanner;
class Program {
    public static void main ( String args[]) {
        Scanner input = new Scanner (System.in);
        int min = input.nextInt();
        int max = input.nextInt();
        
        for ( min, min <= max; min++) {
            System.out.print(min + " ");
        }
}// c++:
import <iostream>
int main() {
    for ( min, min <= max; min++) {
            cout<<min<<" "

        }
    return 0;
}
// ... I got bored
You might be interested in
Requirements description:
Andrews [41]

Answer:

The code has been written in Java.

The source code of the file has been attached to this response. The source code contains comments explaining important lines of the program.

A sample output got from a run of the application has also been attached.

To interact with the program, kindly copy the code into your Java IDE and save as Cafe.java and then run the program.

Download java
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark"> java </span>
75f69c356ebff0797de4ffcfb6f8c22e.png
8 0
3 years ago
By applying styles,____ formats are being applied each time?
Ray Of Light [21]
(A) the same, by applying styles the same formats are being applied each time.
8 0
3 years ago
A technician is dispatched to install additional RAM in a computer. The technician unplugs the system from the power source, and
xz_007 [3.2K]

Use an anti-static bag to hold the RAM while installing.

6 0
3 years ago
In full screen reading view the blank is reduced
aksik [14]

Answer is: Yes

<u>Explanation:</u>

Word includes a full-screen mode that minimizes the extraneous information (tools, menus, etc.) displayed on the screen. The normal way of switching to full-screen mode is to display the View tab of the ribbon and click Full Screen Reading in the Document Views group. (If you are using Word 2013 or Word 2016 click Read Mode in the Views group.) You can also click the Full Screen Reading view icon (Read Mode view icon Word 2013 and Word 2016) near the right side of the Status bar located at the bottom of the document window. You exit the mode by either clicking the Close button (upper-right corner of the screen) or by pressing Esc.

4 0
3 years ago
Imagine how the situation could be handled. Come up with as many ideas as possible: There's no one "right" answer! Then, highlig
Veseljchak [2.6K]

Answer:

there is no passage

Explanation:

6 0
3 years ago
Other questions:
  • An array subscript can be an expression, but only as long as the expression evaluates to what type?
    7·1 answer
  • Alkane is a Variety of which fruit
    6·1 answer
  • What refers to the protocolâ s ability to ensure that data hasnâ t been modified in any way?
    15·1 answer
  • What happens if the addressed device does not respond due to a malfunction during a read operation?
    11·1 answer
  • Which folder does the ipad saves my pictures?
    14·2 answers
  • Instructions:Type the correct answer in the box. Spell all words correctly.
    9·2 answers
  • Please help me with these short questions &gt;..
    11·1 answer
  • Read two numbers from user input. Then, print the sum of those numbers. Hint - Copy/paste the following code, then just type cod
    9·1 answer
  • How would you describe binary to someone ??<br> PLEASE ANSWER I WILL GIVE U BRAINLY!!
    15·2 answers
  • 1.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!