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
What is a valence orbit?
Sergio [31]

Answer:

An atom consists of two basic parts: the nucleus and the electrons. The nucleus is the central core of an atom and is made up of protons and neutrons. Electrons are very light, negatively charged particles that surround the positively charged nucleus. Early models of the atom depicted the electrons circling the nucleus in fixed orbits, much like planets revolving around the sun.

Current theory suggests that electrons are housed in orbitals. This is a valence orbital or valence orbit

Explanation:

The outermost orbital shell of an atom is called its valence shell, and the electrons in the valence shell are valence electrons. Valence electrons are the highest energy electrons in an atom and are therefore the most reactive. this is where your valence orbit gets its name because it is the outermost shell.

8 0
3 years ago
Read 2 more answers
The numbers on the bottom of a typical check represent all of the following EXCEPT
Phantasy [73]
<span>These numbers indicate the account a check is drawn on and from which bank.</span>
5 0
3 years ago
How many different integers can be represented with a 4-digit number in base 13?
AnnyKZ [126]
That would be 13^4, or 13*13*13*13 = 28561
6 0
3 years ago
What are some catchy names for computer basics that you would put on a childrens poster?
Triss [41]

Answer:

not sure

Explanation:

6 0
3 years ago
Jason works as a financial investment advisor. He collects financial data from clients, processes the data online to calculate t
Sedbober [7]

I believe the answer is A. because he has to listen to what the people tell him and he information he has to think about and make a choice on what to reply with.

I hope this helps and its correct please let me know if its wrong have a great day//night.

4 0
3 years ago
Other questions:
  • You can click a web page title on the _____ list to return to that page.
    10·1 answer
  • What special member function of a class is called whenever an instance of a class is created and initialized?
    15·1 answer
  • We will pass in a value N. Write a program that outputs the complete Fibonacci sequence for N iterations. Important: If N is 0,
    13·1 answer
  • A(n) ____ string contacts the data source and establishes a connection with the database using the Data Source Configuration Wiz
    5·1 answer
  • Diverting an attacker from accessing critical systems, collecting information about the attacker's activity and encouraging the
    8·1 answer
  • Write python code that does the following: Ask the user to enter as many as number they want; Then find the sum and the average
    10·1 answer
  • What is computer code?<br> A. Java Script<br> B. XML<br> C. HTML<br> D. Any programming language
    6·1 answer
  • Write short notes about monitor printer and speaker​
    14·2 answers
  • Derek has to create a technical design of a complex floor plan using CAD. What will be most helpful for Derek to use to create t
    8·1 answer
  • Text Questions
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!