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
Musya8 [376]
3 years ago
10

Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the

value is less than or equal to the second integer. Ex: If the input is: "-15" 10 the output is: "-15" "-10" "-5" 0 5 10 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first.
Computers and Technology
1 answer:
Anna11 [10]3 years ago
6 0

Answer:

The program in Python is as follows:

num1 = int(input())

num2 = int(input())

if num2 < num1:

   print("Second integer can't be less than the first.")

else:

   for i in range(num1,num2+1,5):

       print(i,end=" ")

Explanation:

This gets the first integer from the user

num1 = int(input())

This gets the second integer from the user

num2 = int(input())

If the second is less than the first, the following prompt is printed

<em>if num2 < num1:</em>

<em>    print("Second integer can't be less than the first.")</em>

If otherwise, the number between the intervals is printed with an increment of 5

<em>else:</em>

<em>    for i in range(num1,num2+1,5):</em>

<em>        print(i,end=" ")</em>

<em />

You might be interested in
Which of the following locations would most likely have the most fertile soil?
Nina [5.8K]
D: the side of a mountain
3 0
4 years ago
The item in this illustration that is highlighted is the _____. quick access tool bar view buttons status bar zoom control
tiny-mole [99]

Answer: scrollbar

Explanation:

7 0
3 years ago
Read 2 more answers
A ______ or workstation computer is typically used by one or a small number of people to perform everyday productivity tasks, su
sveta [45]

Answer:

Desktop

Explanation:

A desktop computer is a personal computing machine designed to be used on top of a usual office desk.

It accommodate in it the physical hardware that makes a computer run and connects to input devices like the mouse, monitor, and keyboard users interact with. Desktop computers are mostly used in enterprise and business environment, including in consumer use cases such as for gaming. In the enterprise, they are vital since they are the major medium for many users to do their day to day jobs.

6 0
4 years ago
??????????????????????????
suter [353]

Answer:

procedimento

Explanation:

faz se a montagem conforme mostra a figura.

6 0
3 years ago
Advanced Electronics has employees who use a company website to share work. By posting on the website, employees are
Anna11 [10]

Answer:

B - On the Save & Send tab, select Save to SharePoint, which will allow access to all registered users.

Explanation:

When you send the document to SharePoint, within the SharePoint app you can enable <em>track changes </em>which can be used to track your changes.

7 0
3 years ago
Other questions:
  • Consider an interface p ublic interface NumberFormatter { String format (in n); } Provide four classes that implement this inter
    15·1 answer
  • Sample Run 1 Enter your word: zebras Enter a number: 62 Password not long enough. Sample Run 2 Enter your word: newyorkcity Ente
    12·1 answer
  • Peter works on a huge database of numerical figures in a worksheet ranging from cell A1 to cell I50. He has to print the workshe
    15·2 answers
  • In Google search results, how are organic links different from sponsored links?
    13·2 answers
  • Find and fix the error in the if-else statement. import java.util.Scanner;
    11·2 answers
  • Question 11
    9·1 answer
  • A two-dimensional array has been defined to hold the quantity of each of 5 different healthy snack products sold in a tuckshop d
    10·1 answer
  • Write the following abbreviations in full next to the question number
    15·1 answer
  • Design and implement an application that reads a string from the user then determines and prints how many of eachlowercase vowel
    8·1 answer
  • The television is the biggest technological advancement in communication since the telephone.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!