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
Aloiza [94]
3 years ago
14

Ask the user for two positive integers; the first number, a, should be less than the second number, b. Print the average of the

numbers from a to b inclusive. [ For example: If the user enters 3 and 7, the code should print 5 ((3+4+5+6+7)/5). ] (python coding)
Computers and Technology
1 answer:
gavmur [86]3 years ago
8 0
What you need to do here is increment. Begin by asking the user for the two inputs like you were ( one smaller than the other ) then you would need a loop that kept creating new integers until the desired maxNum is reached. I can write this in Java but not python. in java you would need a 'while loop' and the incrementation '++'. So int1 = 3 and int2 = 7
While (int1 < int2; int++) {
     intAverage = (('integers')/integers.length();
}
You might be interested in
An object reference is required for the nonstatic field method or property True or False
Marizza181 [45]
I believe its false.
6 0
3 years ago
If cost of 1 kg sugar is 36 find price of 3 kg sugar​
SashulF [63]

Answer:

the answer is 108

Explanation:

3×36=108

7 0
3 years ago
A certain social media Web site allows users to post messages and to comment on other messages that have been posted. When a use
garri49 [273]

Answer:

A or S most likely (I think)

7 0
3 years ago
Windows displays a(n)
pochemuha

Answer:

system I hope tis is right

7 0
3 years ago
Hope goes through the steps of sorting a list. The resulting list is shown below.
Dmitry [639]

Answer:

Click the Header Row option.

Explanation:

7 0
3 years ago
Other questions:
  • Mara's presentation included essential information about the company's new safety procedures. She wanted to make
    13·2 answers
  • All but one of the following statements about stored procedures is true. Which one is false? a. They consist of one or more SQL
    10·1 answer
  • Which of the following should you NOT do when using CSS3 properties to create text columns for an article element? a. make the c
    12·2 answers
  • we studied FIFO, Priority, Round Robin (RR), and Weighted Fair Queueing (WFQ) packet scheduling disciplines. Which of these queu
    12·1 answer
  • TRUE OR FALSE: If I ask you to span multiple rows in your table, that means that two columns will merge together
    5·1 answer
  • A corporation needs an operating system that allows the various teams in its office to network and collaborate on projects. Whic
    13·2 answers
  • THE PROTOCOL ORIGNALLY RAN ON TOP OF NETBT,BUT today runs by itself and uses port 445?
    11·1 answer
  • Choose all items that represent essential items to bring to an interview.
    9·2 answers
  • Given the code as follows: main() { int i = 3, n; float x; x = i; n = 8 % x; } What problem will occur? Group of answer choices
    12·1 answer
  • Helpppppp meeeeeeeeeeeeeeeeee
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!