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
JulsSmile [24]
3 years ago
15

10.13 LAB 10C: Output range with increment of 5 Write a program whose input is two integers. Output the first integer and subseq

uent increments of 5 as long as the value is less than or equal to the second integer. You may prompt for the two integers as you wish; the prompt will not be included in the grading. Ex: If the input is:
Computers and Technology
1 answer:
FromTheMoon [43]3 years ago
6 0

Answer:

In Python:

num1 = int(input("Num 1: "))

num2 = int(input("Num 2: "))

big = num2; small = num1

if num1 > num2:

   big = num1; small = num2

   

for nms in range(small,big+1,5):

   print(nms,end = " ")

Explanation:

This prompt the user for two numbers

<em>num1 = int(input("Num 1: "))</em>

<em>num2 = int(input("Num 2: "</em>))

This initializes the biggest of the 2 to num1 and the smallest to num2

<em>big = num2; small = num1</em>

<em>If num1 is bigger than num2, big and small are swapped</em>

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

<em>    big = num1; small = num2</em>

This iterates from the small to big number with an increment of 5

for nms in range(small,big+1,5):

This prints each number

   print(nms,end = " ")

You might be interested in
What conversion factor should be used to convert from meters to Gigameters?
hodyreva [135]
Meters * 1,000,000,000 = gigameters
5 0
3 years ago
10 Ejemplos de Software de Sistema. AYUDENME POR FAVOR SE LOS SUPLICO
bearhunter [10]

Answer:

MacOS, Linux, Android, Microsoft Windows, software de ciencia computacional, motores de juegos, automatización industrial y aplicaciones de software como servicio.

:-) (-:

6 0
3 years ago
In what section of the MSDS would you find information that may help if you use this substance in a lab with a Bunsen burner?
dybincka [34]

Answer:

The answer is "Fire-fighting measures".

Explanation:

This section is used to includes instructions to combat a chemicals flame. It is also known as the identify sources, which include the instructions for effective detonating devices and details for removing devices only appropriate for just a specific situation. It is the initiatives list, that is necessary destruction technology, materials; flaming inferno dangers.

8 0
3 years ago
Which of the following strategies might be useful when organizing items in your study area?
grin007 [14]
Once you organize your desk, you don't need to do anything else .
3 0
3 years ago
Assume that the int variables i and j have been declared, and that n has been declared and initialized.
timama [110]

Answer:

public class num6 {

   public static void main(String[] args) {

       int n = 4;

       for(int i = 1; i <= n; ++i) {

           for(int j = 1; j <= i; ++j) {

               System.out.print("* ");

           }

           System.out.println();

       }

   }

}

Explanation:

This solution is implemented in Java

Two for loops are required for this (an inner nd outer for loop).

The innner and outer for loops can be seen as implementing rows and columns (so on the first 'row' i=1, so a single star is printed, on the second row, i =2, two stars are printed and so on, all on seperate lines)

8 0
3 years ago
Other questions:
  • What types of storage can be used to access data from another computer
    8·2 answers
  • Which of the following are true statements about collisions in hashing? Linear probing can cause secondary collisions. Higher sp
    6·1 answer
  • Which one of these variables has an illegal name?
    11·1 answer
  • Which are valid double statements for java? double a = 0; double b = -1.0; double c = -425; double d = 6340; double e = -1.0; do
    12·2 answers
  • In 1-2 sentences, describe how to change the font.
    8·2 answers
  • Which of the following statements is used to terminate the program when closing the frame?
    5·1 answer
  • What is the meaning of web browser
    11·1 answer
  • Which statement describes the word "iterative"?
    5·2 answers
  • Internal exception java.net.socketexception connection reset 1.18
    8·2 answers
  • You are using a device that reads the physical addresses contained in incoming data that travels along network cables. Based on
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!