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
Cari brought 2 pounds of grapes at the grocery store she ate 5 ounces of the grapes on way home what is the weight of the grapes
sveta [45]

Answer:

27 ounces

Explanation:

You can convert 2 pounds into 32 ounces then subtract the 5 ounces that she ate from that 32.

7 0
3 years ago
Class 10 computer unit 1 all excersise​
kenny6666 [7]
Y’all just asking for people do your work, literally not even a question
5 0
3 years ago
Suppose Alice, Bob, and Carol want to use secret key technology to authenticate each other. If they all used the same secret key
HACTEHA [7]

Answer:

No. This is not more secure.

Explanation:

this is not more secure than having all of Carol, bob and Alice having the same key.

alice would be able to know Carol's key for her to be able to verify the answer Carol gave to a challenge by her. she would also have to know bob's key to do the same.

any of these 3 would have to know someone else's secret key to verify answers to any challenge.

the challenge is to know the secret keys if the other two and if done, decryption can easily be done and they can impersonate.

8 0
3 years ago
Which shape denotes a process to be carried out in a flowchart?
luda_lava [24]

The answer is a rectangle.

6 0
3 years ago
Read 2 more answers
Why Java Script uses the prefix Java in itsname?
kifflom [539]

Answer:

Java in JavaScript does not correspond to any relationship with Java programming language.

Explanation:

The prefix Java in Javascript is there for historical reasons.

The original internal name of Javascript when it was created by Brendan Eich at Netscape was Mocha. This was released to public as Livescript in 1995. The name Livescript was eventually changed to Javascript in Netscape Navigator 2.0 beta 3 release in December 1995 after Netscape entered into an agreement with Sun Microsystem. The primary purpose of change of name seemed to be as a marketing aid to benefit from the growing popularity of Java programming language at that time.

4 0
3 years ago
Other questions:
  • In what country did true printing first take place?
    12·2 answers
  • Correspondence involves verbal communication. True False
    6·2 answers
  • The common programming structure that implements "conditional statements" is called an____ statement.
    8·1 answer
  • Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to ma
    6·1 answer
  • ____ devices are high-performance storage systems that are connected individually to a network to provide storage for the comput
    12·1 answer
  • Each device attached to your computer comes with a special program called a(n ________ that enables the device and operating sys
    15·1 answer
  • "What line of code can be used to provide a convenient way to merge the source code from one file with the source code in anothe
    8·1 answer
  • Which of the following might an interior designer in the retail industry specialize in?
    9·1 answer
  • What does it mean to say that data in an Excel table is “dynamically linked” to a chart? What are the advantages of this feature
    5·1 answer
  • ______________ is a raw fact about a person or an object
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!