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
tia_tia [17]
4 years ago
6

Write a for loop that prints in ascending order all the positive multiples of 5 that are less than 175, separated by spaces?

Computers and Technology
2 answers:
djverab [1.8K]4 years ago
7 0

Answer:

li = []

for i in range(5,175):

   if i % 5 == 0:

       li.append(i)

     

   

print(li)

Explanation:

The above code was written in python 3 programming language.

Firstly, an empty list is created to hold the values that will be derived from the for loop.

<em>for i in range(5,175): </em>

The range module here generates a list from 5 to 174, The for loop iterates through each number and checks if they are in agreement with the IF statement. i.e. If they are divisible by five and leave no remainder and then appends(adds) the values to the empty list and the loop runs again till it gets to 174, and then it stops.

I have attached a picture for you to see the result and how the code runs.

kiruha [24]4 years ago
4 0

Answer:

The answer to the following question by the C++ programming language.

#include <iostream>    //header file

using namespace std;   // namespaces

int main()    // main function

{

for (int i=1; i<175; i++){  // set for loop

if ((i % 5) == 0){    // set if condition

cout << i << " ";

}

}

}

Output:

5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125 13 0 135 140 145 150 155 160 165 170

Explanation:

Here, we define header file and namespaces.

Then, we define the main() function.

Then, we set the for loop, which starts from 1 and stop at 174.

Then, we set the if condition, which divides each integer value from 1 to 174 from 5.

Then we set "cout<< ;" which prints all those integer values which is divided by 5 with space.  

You might be interested in
Neview of related literature happens in two wayo (1) Traditional and
Greeley [361]

Answer:

I dont know the question all i know is the answers or whatever

Explanation:

8 0
3 years ago
A set of object that share a common structure and common behavior in database is called ​
Tcecarenko [31]
An Object Class. Hopefully this answer is right.
3 0
3 years ago
Robert’s computer is not working properly. It has become too slow to respond to programs. What can he do to maintain his compute
ozzi

Answer: Utility Software

Explanation:

Utility software is software designed to help to analyze, configure, optimize or maintain a computer. It is used to support the computer infrastructure - in contrast to application software, which is aimed at directly performing tasks that benefit ordinary users.

3 0
3 years ago
Computer designers have concentrated on technology using gallium arsenide instead of silicon because silicon:
cestrela7 [59]

Answer: cannot emit light and has speed limitations

Explanation:

Silicon is usually used in computer chips and solar cells but Gallium arsenide is regarded as a better alternative even though it's costly than silicon.

Gallium arsenide has technical advantages over silicon as its electrons

move through it faster than they move through silicon. Also, cannot emit light and has speed limitations.

Gallium arsenide is used in manufacturing devices like infrared light-emitting diodes, solar cells, optical windows, etc.

7 0
3 years ago
Instructions:Drag the tiles to the boxes to form correct pairs.
nadya68 [22]
#1-2
#2-3
#3-5
#4-1
#5-4
4 0
3 years ago
Read 2 more answers
Other questions:
  • When considering server consolidation, plan on running ___________ vCPUs per core.a. 1 to 2b. 3 to 4c. 4 to 6d. 6 to 8
    7·1 answer
  • Which of the following is NOT true about functions? They go below the main program in the source code file. They do a single tas
    10·1 answer
  • You will be given a string, containing both uppercase and lowercase alphabets(numbers are not allowed).
    14·1 answer
  • Write an if-else statement for the following: If user_tickets is less than 5, assign 1 to num_tickets. Else, assign user_tickets
    15·1 answer
  • Obtaining the data of a video file from a flash drive is an example of a(n) _________ operation.
    6·1 answer
  • What is the best Genshin impact ship? My favorite is Xiao x Lumine. Put yours bellow.
    13·2 answers
  • Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
    7·1 answer
  • When a virtual machine is
    9·1 answer
  • During which phase of the writing process is it best to have other
    11·1 answer
  • Write a function that accepts a cell array StudentScores consisting of the following:
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!