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
In general, smartphones do NOT hold as much personal information as tablets.
lana [24]
Both are false, more people have information on their smartphones which i carry around all day compared to mostly keeping tablets at home. #2 is false since 47% of the world has internet access.
5 0
3 years ago
What are the names of the two main characters in pirates of silicon valley
PtichkaEL [24]
Answer: Steve Jobs and Steve Wozniak
7 0
4 years ago
Why isn't my mic working in my headset not working on my Apple PC? It is a RUNMUS K8.
Elenna [48]

Answer:

either your headset is defective or your settings is defective.

Explanation:

Your combined headphone/mic plug probably has four 'bands' including the tip.

Does your MacBook have one or two audio mini-jack inputs?

If it has one jack, you should be OK, but your headset mic could be defective. Have you tried a different combined mic/headset?

Older MacBooks have two separate jacks for audio input and headphones. 'Line in' audio expects an amplified audio source as input, such as a microphone attached to an external amplifier, or an iPod output through a stereo cable with a mini-plug on each end. Your headphone mic is probably not amplified.

This screen capture shows a (blue dot) peak audio indicator with a (mono) amplified mic as input.

If you have an unamplified mic, you likely won't get ANY sound indication from Line In, even tapping directly on the mic.

5 0
3 years ago
4. What's the screen that displays results from typing text, performing calculations, or running programs?
Tems11 [23]
<h3>The screen is called a<u><em> monitor.</em></u></h3><h2><em><u>Hope this helps</u></em></h2>
8 0
4 years ago
Write a method that reverses the sequence of elements in an array. For example, if you call the method with the array 1, 4, 9, 1
LUCKY_DIMON [66]

Answer:

The method written in Java is as follows:

   public static void ArrayReverse(int myarray[]){

       for(int index = myarray.length-1; index>=0;index--)

           System.out.print(myarray[index]+" ");

}

Explanation:

This line defines the method

   public static void ArrayReverse(int myarray[]){

This line iterates through the array from highest to least index

       for(int index = myarray.length-1; index>=0;index--)

This prints the array elements in reverse

           System.out.print(myarray[index]+" ");

}

To call the method from the main, use the following:

ArrayReverse(myarr);

However, myarr must be declared and populated as an integer array before the method is called

See attachment for illustration of the complete program (the main and the array reverse method)

Download txt
5 0
3 years ago
Other questions:
  • Windows pe includes networking components and allows you to use current windows drivers for network connectivity.
    11·1 answer
  • You are going to buy a computer but first you want to do some research to help you select the best model everfi answer
    11·1 answer
  • The first computer (the eniac was how big
    8·1 answer
  • The shortcut key to access the spelling and grammar check is _____.
    11·2 answers
  • Contextual targeting method mean
    11·1 answer
  • A set of blocks contains blocks of heights 1,2, and 4 centimeters. Imagine constructing towers of piling blocks of different hei
    15·1 answer
  • Why is k12 homeschool hard for me? is it me or is that school a scam?
    5·1 answer
  • Frrrrrrrrrrreeeeeeeeee brainliest for u
    13·2 answers
  • What is a drone satellite?​
    7·1 answer
  • Outline the steps for logging into E-mail account​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!